Make a timer, and when the timer hits 0 the player gets moved.
|
Okay so I've added ditch to my server, but I don't know how to make the Animation come first THEN jump over the ditch, it currently moves the player and then does the animation.
This is the code
Code:case 23271://wildy ditch if (c.absY < c.objectY) { c.startAnimation(6132); c.getPA().movePlayer(c.objectX, c.absY + 3, 0); } else if (c.absY > c.objectY) { c.startAnimation(6132); c.getPA().movePlayer(c.objectX, c.absY - 3, 0); } break;
Make a timer, and when the timer hits 0 the player gets moved.
Use the cycle event handler to move the person instead of instant moving.
@Coder, just wrote up some quick code in Cycle Handler, works fine now
Add a tick using events.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |