Thread: Following on 600ms cycle.

Results 1 to 8 of 8
  1. #1 Following on 600ms cycle. 
    #Flippergang

    Alberto's Avatar
    Join Date
    May 2008
    Posts
    756
    Thanks given
    46
    Thanks received
    40
    Rep Power
    121
    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. ]
    Hopes and Dreams
    Need something programmed and willing to pay?
    Pm me.
    Reply With Quote  
     

  2. #2  
    PokeNation! Xaves's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    3,478
    Thanks given
    356
    Thanks received
    787
    Rep Power
    646
    How are you doing your following?


    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    #Flippergang

    Alberto's Avatar
    Join Date
    May 2008
    Posts
    756
    Thanks given
    46
    Thanks received
    40
    Rep Power
    121
    I call it once every combat cycle. So every 600ms.

    At the moment, using the unclipped version in dementhium.
    Hopes and Dreams
    Need something programmed and willing to pay?
    Pm me.
    Reply With Quote  
     

  4. #4  
    Registered Member Conner_'s Avatar
    Join Date
    May 2011
    Age
    24
    Posts
    466
    Thanks given
    198
    Thanks received
    40
    Rep Power
    29
    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.

    Reply With Quote  
     

  5. #5  
    #Flippergang

    Alberto's Avatar
    Join Date
    May 2008
    Posts
    756
    Thanks given
    46
    Thanks received
    40
    Rep Power
    121
    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.
    Hopes and Dreams
    Need something programmed and willing to pay?
    Pm me.
    Reply With Quote  
     

  6. #6  
    #Flippergang

    Alberto's Avatar
    Join Date
    May 2008
    Posts
    756
    Thanks given
    46
    Thanks received
    40
    Rep Power
    121
    bumpp S
    Hopes and Dreams
    Need something programmed and willing to pay?
    Pm me.
    Reply With Quote  
     

  7. #7  
    Member
    Boomer's Avatar
    Join Date
    Sep 2006
    Posts
    1,282
    Thanks given
    309
    Thanks received
    795
    Rep Power
    1111
    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.


    [Only registered and activated users can see links. ] ||| FightScape | InnerFantasy | PkIsle | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    #Flippergang

    Alberto's Avatar
    Join Date
    May 2008
    Posts
    756
    Thanks given
    46
    Thanks received
    40
    Rep Power
    121
    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.
    Hopes and Dreams
    Need something programmed and willing to pay?
    Pm me.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Cycle Time in wL
    By Mrthunder23 in forum RS2 Server
    Replies: 9
    Last Post: 02-17-2011, 05:04 AM
  2. Making a process called every 600ms.
    By Discardedx2 in forum Help
    Replies: 3
    Last Post: 12-23-2009, 08:24 PM
  3. Cycle Time.
    By Demetri in forum Help
    Replies: 0
    Last Post: 11-03-2009, 09:00 PM
  4. RuneScape cycle time.
    By Stanyer in forum RS2 Server
    Replies: 4
    Last Post: 04-09-2008, 05:00 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •