How do I detect collision of instances of same sprite

Get help using Construct 2

Post » Tue May 26, 2015 7:24 am

I have an explosion sprite that deals damage to any enemy instances. But when the explosion collides with 2 or more of the same instance, my score is only given as once not for each instance destroyed. How do I correct it?
B
7
Posts: 30
Reputation: 333

Post » Tue May 26, 2015 10:54 am

If you put the command to add+1 to your variable within the same condition that destroys the enemy it should work. Try uploading the .capx or a screenshot of your code so we can take a better look on what's going on.
Sorry for not being able to help D:
B
17
S
7
Posts: 277
Reputation: 2,514

Post » Tue May 26, 2015 10:23 pm

Thanks that worked ! I added an on destroyed triggger add 1 to a global variable and placed the score after that rather then under on hp = 0.

Rayki you helped ! =D
B
7
Posts: 30
Reputation: 333


Return to How do I....?

Who is online

Users browsing this forum: alextro, mikehive, Yahoo [Bot] and 9 guests