Help! How can I define clickable frames for an animation? see the video youtube.com/watch see 0:27 sec... U can undersatnd what i say ......ï»¿
Develop games in your browser. Powerful, performant & highly capable.
Not sure what am I supposed to see in your video at 0:27
If you want only certain frames be clickable, you can add this condition to your "On Click" or "On object clicked" event:
YourSprite -> Compare Frame
Thanks for your reply
How to control animation frame with mouse event
You want to change animation frame when mouse is clicked? It's easy.
1. Add Mouse object to your layout if you haven't done it yet.
2. Create event:
Mouse -> On Click (or On Object Clicked)
3. Create action for this event:
YourSprite -> Set Animation Frame
Also, make sure that the animation is stopped (speed is set to 0).
It seems you have a sprite with multiple frames and want to advance to the next frame everytime you cklick that object, am I right?
Check the .capx below. Click to advance to the next color and right-click to go back to the previous one.
https://www.dropbox.com/s/v3afdy5mxxqyn ... .capx?dl=0
Hope it helps. Cheers!