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
7
Posts: 24
Reputation: 320

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
74
S
20
G
69
Posts: 2,209
Reputation: 43,840

Post » Sat Dec 26, 2015 2:50 am

Thank you so much!!
B
7
Posts: 24
Reputation: 320


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 50 guests