Wondering if there’s a way to make a sprite respawn in the same level after losing all health points, rather than going back to the start of the game.
Currently using the following code to change levels:
Wondering if there’s a way to make a sprite respawn in the same level after losing all health points, rather than going back to the start of the game.
Currently using the following code to change levels:
You’ll need to change the value of the certain variable that you are using by 1.
Perhaps use the settings extension? You’ll find it by scrolling down the extensions tab in the editor, basically what it does is stores variables longterm, even after turning the hardware off. Maybe that would help?
I can help if i can see your game
Could you share the code? It’s a bit hard to see what’s going on.
To do so, click Share → Share project and copy the link here.
Thanks for responding! Here’s the code. Please let me know if you have any other suggestions for tidying it up.
Thanks very much, personalnote!