How do I make the same sprites die seperate

Get help using Construct 2

Post » Tue Feb 23, 2016 12:58 pm

So I made a game where you can shoot enemys with a fireball.

When I shoot one of them, all of them get destroyed, but I just want the one that I shot to get destroyed.
The enemy has 3 sprites in total, the enemy texture with animations etc, the hitbox, which has the bullet behaviour to move towards the player, and the healthbar sprite.
Heres a screenshot of the Event sheet:
http://puu.sh/nirRu/81bd38dad8.png

Any suggestions? (btw sorry for my bad english :? )
B
4
Posts: 3
Reputation: 206

Post » Tue Feb 23, 2016 1:36 pm

Maybe is: For each sprite
when bullet collision with sprite
sprite die
B
4
Posts: 8
Reputation: 218

Post » Tue Feb 23, 2016 2:00 pm

doesnt work :/
probably because my Enemy consists of 3 sprites in total
B
4
Posts: 3
Reputation: 206

Post » Wed Feb 24, 2016 3:14 am

Try: For each sprite,
Sprite.health <=0, destroy sprite

Make it a separate (no sub) event to work.
If your enemy consists of 3 sprites, try put them in container. It will register one sprite to each other, spawn together and destroy together.
B
7
S
2
G
1
Posts: 42
Reputation: 1,144

Post » Wed Feb 24, 2016 1:26 pm

it works!
thank you so much <3 :D
B
4
Posts: 3
Reputation: 206


Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, namaewayukidesu, Yahoo [Bot] and 12 guests