help with switching animations

app-etiteapp-etite Member Posts: 139
edited November -1 in Working with GS (Mac)
Hi guys

In my game when my character is caught I have a looping animation of cartoony smoke and dust to illustrate him getting beaten up kinda thing. but.. just before that "loop" animation plays i want to add in 3 frames of animation before the loop animation.

the behaviours I have in the actor at the moment are just

Animate - 3 drawings.. no loop

Animate - 13 drawings(loop)

with this it doesn't play the first 3 drawings but does loop the 13.

I dont know what to do.. any ideas?

Thanks

www.twitter.com/appetitegames

Comments

  • DizkoDizko Member Posts: 498
    You have to trigger it through rules somehow.

    You'll have to set up an attribute and put the animations in rules and use that attribute to set which one plays and when according to your game.

    So like, when attribute caught is true play animation one otherwise play animation two. You might also want to reset the attribute after the animation runs so that it can play again if need be.

    Or some variation of that.
Sign In or Register to comment.