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
35
S
9
G
4
Posts: 160
Reputation: 3,912

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
299
S
120
G
96
Posts: 7,345
Reputation: 71,501

Post » Wed Apr 27, 2016 9:19 am

Thanks. so simple :)
B
35
S
9
G
4
Posts: 160
Reputation: 3,912


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 12 guests