This example shows how to make multiple checkpoints in a room with save and load position (spawn) funtions.
Press the arrow keys to move your player object and “Enter” to respawn at the last passed checkpoint.