How are you doing your following?
|
|
So the reason I'm posting this thread is because my following isn't working like it should. It does follow the player, but as soon as one player starts to run (the second player is attacking him), the distance between the two starts increasing slowly. This makes it that the second player stops hitting due to the fact that the distance betweem them is too large.
What I want is people's oppinion on how to do following. Is it because the other players position is being updated too slow? Or what am I doing wrong? Should I call it more often than once?
I am NOT directly asking for code, im asking for oppinion. If you do want to supply code, then thank you in advance.
Please let me know.
My msn is: [Only registered and activated users can see links. ]
I call it once every combat cycle. So every 600ms.
At the moment, using the unclipped version in dementhium.
This happens in real RuneScape as well, though they don't stop following each other completely. You could always add a feature that forces running on the following player, though that would be dumb, and so would sending a message to the follower saying "The person you are following has started to run! Catch the fuck up!" My guess is that you need to add some sort of statement to the distance-between-players-for-combat thingamajig (whatever or wherever that is in your server) that checks if the player is following the other player, in which case it doesn't worry about the distance between the two of them.
It doesn't happen in runescape. In runescape you can run follow a person for ever assuming your run energy doesnt run out and still be hitting them.
bumppS
you have to cycle following/movement, then combat in order for it to work correctly.
whats happening is the leader updates movement then the follower is checking combat then updating their movement position, so in you're combat distance calculation for the follower its always gunna be 1 cycle behind.
So would the following method have to be added in the leaders walking position check? So when it updates his movement, the other character will follow asap.
| « Item Kept on Death | Void cannot be dereferenced? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |