How do I pick a random instance with condition ?

Get help using Construct 2

Post » Wed Apr 27, 2016 8:50 am

Hello,

I have like 10 objects "spawner". spawner object has a instance variable x

How do I pick a random spawner instance that has the instance variable x =0?

Thanks
B
34
S
8
G
4
Posts: 157
Reputation: 3,781

Post » Wed Apr 27, 2016 9:16 am

Condition Spawner - Compare Instance Variable value - X = 0
Condition System - Pick random instance Spawner
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

Post » Wed Apr 27, 2016 9:19 am

Thanks. so simple :)
B
34
S
8
G
4
Posts: 157
Reputation: 3,781


Return to How do I....?

Who is online

Users browsing this forum: 8tomo8, brunopalermo, wertt22 and 9 guests