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
35
S
5
G
1
Posts: 169
Reputation: 2,765

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
48
S
15
G
8
Posts: 603
Reputation: 8,766

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: No registered users and 4 guests