I have a many sprite in a layout and I need to know which was clicked.
Any idea?
this is de layout
[attachment=0:3tuowxll][/attachment:3tuowxll]
Develop games in your browser. Powerful, performant & highly capable.
You have 32 sprites or 1 sprite with 32 frames?
If you have 32 sprites, just create a global variable and when the user click the flag, turns variable into flag´s name.
If they're all one sprite with seperate frames, On Object Clicked will pick the correct one.
If they're all seperate sprites, add them to a family and On Object Clicked with the family chosen will pick the correct one.
Thancks !!! I change tu 32 frame in a 1 sprite!