Collision not working

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.

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

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’

1 Like

Thankyou. I didn’t notice that