How I select/unselect instances and

Get help using Construct 2

Post » Tue Dec 17, 2013 11:33 am

Hi, first of all sorry for my english. I'm still studying it and don't speak it very good. I'll try to explain the best I can. Thank you for your patience.

I have 2 objects. Every object has 6 instances. I want to select an instance and to change his position with another instance.
When I touch the first instance, I want that it rotates to show that is selected, but if I press again the same instance, I want that stops rotating.
I have managed to select an instance with the condition " on touched sprite1 ".
But I don't know how to stop the instance if I touch it again.
Thank you for your help!
B
4
S
2
Posts: 3
Reputation: 506

Post » Tue Dec 17, 2013 11:48 am

You can create a Boolean instance variable on your sprite, and then use the 'toggle boolean' action

On touched sprite: Toggle Sprite.Selected
is Sprite Selected: spin!
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Dec 17, 2013 12:07 pm

It works! Thank you very much keepee!!!
B
4
S
2
Posts: 3
Reputation: 506


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests