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
26
S
6
G
4
Posts: 456
Reputation: 5,853

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
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Apr 21, 2013 9:29 pm

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

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
26
S
6
G
4
Posts: 456
Reputation: 5,853


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests