Losing lives randomly

I can’t find anywhere in the code that would cause this but I’m new to this so I’ve probably missed something.

1 Like

Looks like the 3D render extension creates its own player sprite that is getting hit by one of the bats and lowering your health. You can probably just add a “for (value) of (sprites of kind [player]), set (value) position (-100, -100)” at the beginning so that all player sprites will get placed really far away. Then the main player sprite will get placed correctly when you place it on the start tile and the wrong player sprite will still be far away so nothing can happen to it.

If that doesn’t work you’ll have to remove the 3D render extension, which you can do by going into JavaScript, clicking on the “explorer” tab underneath the simulator, and deleting the file for the extension. You should probably remove the “toggle view mode” block from your code before you remove the extension so that nothing errors.

I found out what was causing it and its now fixed

1 Like

That was the issue thank you

1 Like