Does anyone know how to add checkpoints to a level so that when you die you don’t have to do the entire game over again. They just respawn at the checkpoint, and it resets back to the first one when the win?
Instead of gameover call the level. Or if it is a long level, create variables storing the checkpoint locations.
I would just create a location variable called
respawn_location (which would be where they first spawned) and every time you overlap a checkpoint tile then set the current location the the
respawn_location variable. Then, when the player dies, just sent the players position to the
I would do the same as @UnsignedArduino just with function!
Thanks guys this helps a lot!
Xept for me I did completely nothing
You are still appreciated. hands participation trophy
thank you best trophy ever