help with switching animations
![app-etite](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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
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
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.