How do i to know which sprite was clicked?

Get help using Construct 2

Post » Mon Jun 09, 2014 6:58 pm

I have a many sprite in a layout and I need to know which was clicked.

Any idea?

this is de layout

seleccionable.png
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 4
Reputation: 183

Post » Mon Jun 09, 2014 7:27 pm

You have 32 sprites or 1 sprite with 32 frames?
B
11
S
3
Posts: 39
Reputation: 814

Post » Mon Jun 09, 2014 7:34 pm

If you have 32 sprites, just create a global variable and when the user click the flag, turns variable into flag´s name.
B
33
S
5
G
1
Posts: 163
Reputation: 2,693

Post » Mon Jun 09, 2014 7:35 pm

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.
B
46
S
14
G
7
Posts: 603
Reputation: 8,116

Post » Mon Jun 09, 2014 7:41 pm

Thancks !!! I change tu 32 frame in a 1 sprite!
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: Huemerson, jorgmaquoi, Yahoo [Bot] and 8 guests