Thread: walkToPoint help

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31
  1. #1 walkToPoint help 
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    How can I make it so the emote stops after it finishes walking to the point?

    I tried resetAnimation();

    and

    pEmote = -1;

    But they didn't work >.<

    ex.)Gnome agility course walking over a log. After the player finishes walking over the log and doing the animation, the player keeps doing the animation even after they walked over the log. How can I fix?
    Reply With Quote  
     

  2. #2  
    Registered Member
    willbill1's Avatar
    Join Date
    Apr 2008
    Posts
    521
    Thanks given
    1
    Thanks received
    6
    Rep Power
    156
    change
    Code:
    walkToPoint(2474, 3429, 762);
    to
    Code:
    walkToPoint(c,2474,3429,762);
    Reply With Quote  
     

  3. #3  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    Mhm...

    Code:
    client.java:8997: cannot find symbol
    symbol  : variable c
    location: class client
                                    walkToPoint(c, 2474, 3429, 762);
                                                ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Finished!
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Ex-Administrator

    Join Date
    Jul 2006
    Age
    31
    Posts
    507
    Thanks given
    6
    Thanks received
    17
    Rep Power
    75
    walkToPoint(this, 2474, 3429, 762);
    Reply With Quote  
     

  5. #5  
    Registered Member
    willbill1's Avatar
    Join Date
    Apr 2008
    Posts
    521
    Thanks given
    1
    Thanks received
    6
    Rep Power
    156
    do you have the void as
    Code:
    public void walkToPoint(client c, int i, int j, int k)
    Reply With Quote  
     

  6. #6  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    Quote Originally Posted by Luke View Post
    walkToPoint(this, 2474, 3429, 762);
    Thanks man

    ---------- Post added at 10:07 PM ---------- Previous post was at 09:57 PM ----------

    How can I make it so the emote stops after it finishes walking to the point?
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    why not just use the walkto void the source comes with, then do
    walkto(coordx, coordy)
    Face(Direction you want it to);
    doAnimation(int);
    delay(1) {or whatever you want to do}
    teletoX = intX;
    teletoY = intY;
    resetAnimation;
    }
    Reply With Quote  
     

  8. #8  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    It won't lagg the server as much. If I use the method you posted for every object it'll create lagg.
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    It's processing the same thing, just in simpler format.. But either way it's still going to teleport you, do a animation, face the object, walk to the object, then reset the animation.
    Reply With Quote  
     

  10. #10  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    But How can I make it reset the Animation once it finishes the walkTo?
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •