Why is it that there are random invincible enemies?

I’m working on a arcadey space shooter game and I’ve got the basic outline of it done but, on double enemy spawns there will be one enemy that is invincible and transfers its damage to the other.
How can I fix this? Thanks

2 Likes

Try using the sprite utils extension
I don’t know what else to say

1 Like

Thanks, although, I don’t quite know how to use that extension lol, may I ask how would I apply it for my game?

1 Like

Wait,
I see your problem


You see, the Variable block will update to the latest sprite created with that variable, so it will destroy the most recent created enemy instead.
Here’s how to fix it:

“OtherSprite” is referring to the Enemy the projectile collided with, so it will destroy the correct one instead.

2 Likes

Thanks mate! That fixed it!

2 Likes