Pick unpicked objects

Get help using Construct 2

Post » Sun Apr 21, 2013 8:45 pm

Having a minor brain seizure here. What I want to do is, when I touch an object, I want to set that object's 'selected' variable to 'on' and set all the other objects in the family to 'off'.

So I have..

On touched 'Family'.... 'Family' Set selected to true.

And now I want to set all the other objects in the family to false. I can't just set the entire family to false above this event because I want this value to persist until another selection is made.

I know there's a simple solution but I can't think of it right now.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Sun Apr 21, 2013 8:58 pm

Store the UID, pick all in family, set value false, pick by UID, set value true.
ImageImageImage
B
67
S
19
G
122
Posts: 3,206
Reputation: 73,399

Post » Sun Apr 21, 2013 9:29 pm

B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Sun Apr 21, 2013 9:44 pm

Thanks. I came up with the method blackhornet suggested, but I like your solution ramones. Didn't make any sense to me until I sat and looked at it for a while, very neat and tidy :)
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly, spcsmrf, Yahoo [Bot] and 27 guests