Stop spawning an object

Get help using Construct 2

Post » Fri Aug 17, 2012 4:27 pm

So I made a object spawn every random seconds. Then I made a global varible and every time the object gets created it adds on to the varible. Can I stop spawning the object after the varible hits a certain number say 5?
B
4
Posts: 15
Reputation: 355

Post » Fri Aug 17, 2012 5:16 pm

Simple, on the event 'every tick', add another condition to the event that checks against the global variable.

Should look a little like this

Every Tick - Create Sprite
Global variable < 10
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Mon Aug 20, 2012 3:30 am

Thanks I got it!
B
4
Posts: 15
Reputation: 355


Return to How do I....?

Who is online

Users browsing this forum: fredriksthlm, MPPlantOfficial and 16 guests