Get moving state and apply animation [SOLVED]

This forum is currently in read-only mode.
From the Asset Store
State Machine
$10.99 USD
State Machine is a great tool for managing the state of anything in your game.
  • Hi!

    I have some zombies running around my map. That's okay, I put them there.

    I get the moving state via condition "is moving" (RTS behaviour). I then set animation to "walk". This all works fine, except for they never stop walking. So what I need is a "is not moving" condition or rather a "special condition" that is "not". I tried it this way:

    Zombie is moving -> Set Zombie animation to "walk"
    else -> Set Zombie animation to "idle"[/code:21gge1gc]
    
    But that didn't work either. At the beginning of the level however, they are all standing still, even when one of them is starting to move ... 
    
    .cap for looking into it yourself is here: [url=http://dl.dropbox.com/u/12049513/ZombiePanic.cap]http://dl.dropbox.com/u/12049513/ZombiePanic.cap[/url]
    
    Best regards,
    Noel
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I feel a bit stupid. I didn't see that you can invert conditions. That did the whole trick. Next time I try to search more careful before shouting for help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)