Microsoft MakeCode

Checkpoints

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?

1 Like

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 respawn_location.

3 Likes

I would do the same as @UnsignedArduino just with function!

1 Like

in lava

2 Likes

just kidding

1 Like

Thanks guys this helps a lot!

2 Likes

Xept for me I did completely nothing

2 Likes

You are still appreciated. hands participation trophy

2 Likes

image
thank you best trophy ever :laughing:

2 Likes