How to fix object not destroying on collision [RESOLVED]

Get help using Construct 2

Post » Sat Dec 26, 2015 12:22 am

My game involves a player shooting upwards at enemies.

To create only one shot at a time, I used this code:
Image

The shot is then destroyed when it touches the enemy (a bat):
Image

*However*, the bat is never destroyed, even though I have this code:
Image

Both objects (Shot and Bat) have collisions enabled.

Thank you for any advice you may have!
Last edited by PixelLab on Sat Dec 26, 2015 3:38 am, edited 1 time in total.
B
8
Posts: 24
Reputation: 345

Post » Sat Dec 26, 2015 2:22 am

Change the on collision event to 2 separate collision trigger lines. Then, in the second line (on collision with bat) add the event Bat Destroy.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,301
Reputation: 47,586

Post » Sat Dec 26, 2015 2:50 am

Thank you so much!!
B
8
Posts: 24
Reputation: 345


Return to How do I....?

Who is online

Users browsing this forum: hellokitty1 and 32 guests