Help with enemies spawning funky and dying in the middle of the screen

Hey there! I’m tring to make a game where you can choose between 3 clases (got that to work with a tutorial on youtube) and fight multiple waves of enemies to climb a tower and defeat the boss. But when the enemies spawn they die when they come close to the middle of the screen. I guess there are invisble player sprites there, since I lose lifes, but I can’t get rid of them without breaking the code. And the bat enemies are spawning in the middle and dying right away.

Can someone check my code and help me out? Thanks!

1 Like

The easiest fix I can think of is turning off sprite collisions for the unused player sprites by getting the “set (mySprite) [auto destroy] ” block and turning it into a “[ghost through sprites] < on>” block with the drop down menu.

1 Like

Thanks, managed to get it working, by first declaring the sprites as empty then only rendering the selected character.

1 Like