Animation frame to trigger attribute
Hi, I'm new here and just working on my first project - and have a question.
I have an actor, it is a simple looped animation consisting of 4 frames. When you click on it I want it to trigger an attribute dependent on the current frame it is displaying. So for example, if frame one is visible when you click, it'll move another actor left. Or if its frame 2 when you click it'll move that actor right etc.
Is this possible? Thanks
I have an actor, it is a simple looped animation consisting of 4 frames. When you click on it I want it to trigger an attribute dependent on the current frame it is displaying. So for example, if frame one is visible when you click, it'll move another actor left. Or if its frame 2 when you click it'll move that actor right etc.
Is this possible? Thanks
Comments
In each image have the rule, attributes etc.
Good luck
you can use the animation behavior and have rules when self image= whatever
Cheers guys!
Edit: Could not have ".png" in the name.
self.image is mainbomb.png WRONG
self.image is mainbomb CORRECT