I have a many sprite in a layout and I need to know which was clicked.
this is de layout
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.
Develop games in your browser. Powerful, performant & highly capable.
Thancks !!! I change tu 32 frame in a 1 sprite!