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
39
S
9
G
4
Posts: 178
Reputation: 4,063

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
312
S
129
G
101
Posts: 7,432
Reputation: 75,432

Post » Wed Apr 27, 2016 9:19 am

Thanks. so simple :)
B
39
S
9
G
4
Posts: 178
Reputation: 4,063


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky and 11 guests