Animation on collide??
is it possible to do a Actor receives overlaps/collides with animation?
Example Hero has a shield. the shield is a animation of a circle animating between 3-4 different colors. If a bad guy hits shield with bad bullet. Can shield take commands?
Example Hero has a shield. the shield is a animation of a circle animating between 3-4 different colors. If a bad guy hits shield with bad bullet. Can shield take commands?
Comments
when enemy overlaps or collide with shield, minus one to the attribute
when attribute equals 0, destroy
Or can I. How do I make 3-4 images 1 actor to name.
when attribute is 2 animate ...
when attribute is 1 animate ...
when attribute is 0 don't animate
For each attribute have a different rule saying change image or animate. Sounds pretty simple. I think..
so when attribute is 3, animate something
Have the bunker animate, and put an invisible actor on top of the animation. Make an integer attribute. set it to 3. every time it gets hit, -1. when it gets to 0, destroy the invisible actor and tell the bunker to stop animating. and how you do that, is make a boolean or another integer. set it to false(or 0). and when you GET the shield, make it true. when its true, animate, OTHERWISE false. Get it?
the other way would make the invisible actor animate and turn it visible but it looks like that way might work. Hope this helped.
I'm not quite sure what you are trying to do but the animation behaviour is just an automatic image cycling function so you can certainly set up a rule that switches when a collision occurs at the same time as a particular image is shown within an animation.