Why don't lives decrease when the spaceship overlaps enemies

In my game, when the spaceship overlaps the enemies you’re supposed to shoot, the lives don’t decrease. Can anyone help me please? thx

5 Likes

If you get to the right of the screen, you can occasionally take damage, because otherSprite ≠ bubblio if it isn’t the last sprite created. Try making the kind bubblio since the variable is being changed every half a second.

1 Like

Found the mistake:

The variable “bublien” and “parabubble” only stores one sprite, so youre not checking if its a type of sprite, youre checking if its a one specific sprite(the most recently created one). You can see that if you go all the way to the right, you actualy lose health. You can fix it in two ways. Eighter make bublien and parabuble two seperate kinds instead of having them both be enemy, or (what i would recomend you do) use the sprite data extension.

1 Like

Free cameo Lez go

1 Like