Animation frame Action?
TouchTiltGames
Member Posts: 1,162
Trying to figure out how to say: If the last frame of an animation collides with an actor, destroy actor or change actor attributes.
Is it possible to specify an animation frame to cause an action other than using a Timer?
thanks in advance
Is it possible to specify an animation frame to cause an action other than using a Timer?
thanks in advance
Comments
Hope that works for you :-)
Mike
Does your animation stop/pause after 30 frames or continue to loop until it collides with something? If the latter is true, you could just create an invisible actor, constrain it to your animated actor and put a timer on that, instead of the visible one.
Put all your collision rules, behaviors, timers and attributes on that. Also if you need to control or switch out animation you can use that invisible actor for those also.
Does that make sense, or does anyone have any better ideas?
Hope that helps,
I will try a constrain too.
cheers,
shane