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
32
S
8
G
4
Posts: 148
Reputation: 3,713

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
288
S
111
G
94
Posts: 7,332
Reputation: 69,160

Post » Wed Apr 27, 2016 9:19 am

Thanks. so simple :)
B
32
S
8
G
4
Posts: 148
Reputation: 3,713


Return to How do I....?

Who is online

Users browsing this forum: Bilderberg CEO, eochranek, fearfulelephants, Solomon and 17 guests