Instance Existence

Get help using Construct 2

Post » Fri Dec 16, 2011 2:49 pm

Hi, I`m trying to do a simple bomb shooter ...

In every level a fix number (wave*5) of bombs spawns,

when there is no more bombs

(player destroyed them, or collided with player then destroyed, etc),

then i want to show some scores, etc. and start the next wave.

My problem is : i don`t know how to check if there is still bombs

(instances)on the layout or not.








B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Fri Dec 16, 2011 2:51 pm

sorry for my bad english... :)
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Fri Dec 16, 2011 2:59 pm

Might try something like:
-+global variable "launched"=1
->sprite.count= 0

.count is the number of objects that exist on the layout.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Fri Dec 16, 2011 3:47 pm

i`ll try this thx
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Wed Dec 21, 2011 8:24 am

It`s working, thx again!
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Tue Jun 19, 2012 7:01 pm

thx..i need it..
B
4
G
1
Posts: 1
Reputation: 577


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 20 guests