Collision not working


#1

I made the enemy destroy when collision with bullet and it worked fine. Then I made enemy as an object group and added enemy1, enemy2, enemy3, enemy4 in it. Now the enemy spawning works perfectly. But the collision is not working. How to solve this? Please help me.


#2


Enemy collision with player works. It doesn’t work for enemy and bullet collision.


#3

In the first snippet, you’re looping though all instances of Enemy (with a capital ‘E’), but you are detecting collision with enemy (with a lowercase ‘e’). The two are completely different.

I think you’ll need to change the repeat to use the enemy with a lowercase ‘e’


#4

Thankyou. I didn’t notice that