Thread: How would I make the anim come first?

Results 1 to 5 of 5
  1. #1 How would I make the anim come first? 
    Registered Member
    Join Date
    Oct 2012
    Posts
    60
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    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;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2012
    Posts
    561
    Thanks given
    43
    Thanks received
    53
    Rep Power
    72
    Make a timer, and when the timer hits 0 the player gets moved.
    Reply With Quote  
     

  3. #3  
    Working on private projects ~~

    Join Date
    Oct 2012
    Posts
    268
    Thanks given
    17
    Thanks received
    17
    Rep Power
    33
    Use the cycle event handler to move the person instead of instant moving.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2012
    Posts
    60
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    @Coder, just wrote up some quick code in Cycle Handler, works fine now
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2011
    Age
    26
    Posts
    2,303
    Thanks given
    471
    Thanks received
    764
    Rep Power
    0
    Add a tick using events.
    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. make anim files load just once
    By owner blade in forum Snippets
    Replies: 27
    Last Post: 08-28-2011, 02:46 AM
  2. Replies: 4
    Last Post: 05-26-2011, 02:21 AM
  3. Object anim loop(after swats anim header)
    By owner blade in forum Requests
    Replies: 10
    Last Post: 11-03-2010, 10:50 PM
  4. Replies: 14
    Last Post: 10-11-2009, 05:40 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •