Thread: Continuous animations?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Continuous animations? 
    RageXile Owner ;)
    Aim High's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Thanks given
    162
    Thanks received
    28
    Rep Power
    28
    I want the command to keep crawling until I use the command again.
    What i've got....
    Code:
    if (playerCommand.equalsIgnoreCase("crawl")) {
    c.startAnimation(844);
    }
    Don't judge me. .-.
    Reply With Quote  
     

  2. #2  
    Super Donator
    Lunacy's Avatar
    Join Date
    Aug 2013
    Posts
    188
    Thanks given
    25
    Thanks received
    48
    Rep Power
    7
    Make the command set your walkingIndex and runningIndex.
    Reply With Quote  
     

  3. #3  
    RageXile Owner ;)
    Aim High's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Thanks given
    162
    Thanks received
    28
    Rep Power
    28
    Quote Originally Posted by Velorian View Post
    Make the command set your walkingIndex and runningIndex.
    Explain more?
    Reply With Quote  
     

  4. #4  
    RageXile Owner ;)
    Aim High's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Thanks given
    162
    Thanks received
    28
    Rep Power
    28
    Bump?
    Reply With Quote  
     

  5. #5  
    Registered Member iBucky's Avatar
    Join Date
    Aug 2013
    Posts
    381
    Thanks given
    49
    Thanks received
    15
    Rep Power
    1
    Quote Originally Posted by Aim High View Post
    Explain more?
    Set it to walk to a set of coords far far away
    Reply With Quote  
     

  6. #6  
    Super Donator
    Lunacy's Avatar
    Join Date
    Aug 2013
    Posts
    188
    Thanks given
    25
    Thanks received
    48
    Rep Power
    7
    Code:
    if (playerCommand.equalsIgnoreCase("crawl")) {
    c.standIndex == 844;
    c.walkIndex == 844;
    c.runIndex == 844;
    }
    I'm not sure how your indexes are declared, so it might be different. Not hard to find though.
    Should be in your Player class.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    May 2011
    Posts
    1,788
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    If you want the animation to repeat when you are on your next tile or do you want the animation as walking anim ?

    Well use walkIndex for walking anim otherwise this should work

    Code:
    public boolean ballsack = false;
    if (playerCommand.equalsIgnoreCase("crawl")) {
    if (ballsack == false {
    ballsack = true;
    } else {
    ballsack == false;
    }
    while (ballsack == true) {
    c.startAnimation(844);
    }
    }
    Not sure about this code i just wrote it down as an idea
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,227
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    Quote Originally Posted by Poesy700 View Post
    If you want the animation to repeat when you are on your next tile or do you want the animation as walking anim ?

    Well use walkIndex for walking anim otherwise this should work

    Code:
    public boolean ballsack = false;
    if (playerCommand.equalsIgnoreCase("crawl")) {
    if (ballsack == false {
    ballsack = true;
    } else {
    ballsack == false;
    }
    while (ballsack == true) {
    c.startAnimation(844);
    }
    }
    Not sure about this code i just wrote it down as an idea
    Why would ANYONE use while statement in that situation.

    Quote Originally Posted by Velorian View Post
    Code:
    if (playerCommand.equalsIgnoreCase("crawl")) {
    c.standIndex == 844;
    c.walkIndex == 844;
    c.runIndex == 844;
    }
    I'm not sure how your indexes are declared, so it might be different. Not hard to find though.
    Should be in your Player class.
    This'll work.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Banned

    Join Date
    May 2011
    Posts
    1,788
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Quote Originally Posted by TheLife View Post
    Why would ANYONE use while statement in that situation.



    This'll work.
    You could use a cycle-event but i just wrote this right from my head
    Reply With Quote  
     

  11. #10  
    Theory Wins?
    Greyfield's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    1,587
    Thanks given
    61
    Thanks received
    265
    Rep Power
    310
    Quote Originally Posted by Poesy700 View Post
    You could use a cycle-event but i just wrote this right from my head
    You do realize what would happen if you used that while block.



    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Rate my lastest animated project
    By Teh runemaster in forum Showcase
    Replies: 7
    Last Post: 07-23-2007, 03:02 PM
  2. Rate my first animated sig on rune-server!
    By Edge in forum Showcase
    Replies: 6
    Last Post: 07-23-2007, 06:17 AM
  3. My First Animated Sig
    By Santa Noobie in forum Showcase
    Replies: 2
    Last Post: 07-20-2007, 11:11 AM
  4. Animating GIFs In PhotoShop
    By Eleclion in forum Tutorials
    Replies: 2
    Last Post: 05-06-2007, 08:02 AM
  5. 1 And Only Anime Sig
    By Darklordants Evil Bro in forum Showcase
    Replies: 3
    Last Post: 04-12-2007, 04:25 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
  •