PokeVideoPlayer v23.9-app.js-020924_
0143ab93_videojs8_1563605 licensed under gpl3-or-later
Views : 607
Genre: Science & Technology
Uploaded At May 9, 2024 ^^
warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 5 (0/16 LTDR)
100.00% of the users lieked the video!!
0.00% of the users dislieked the video!!
User score: 100.00- Masterpiece Video
RYD date created : 2024-05-27T23:45:49.635144Z
See in json
@MichaelKocha
5 months ago
Use the game instance. Make a struct that holds the level name and checkpoint name or just two separate variables. Whenever the player hits a checkpoint save that data on the game instance. When you're in a different level the game instance persists so you can grab it to know which level to load to send the player back to the checkpoint. Once the player loads in check for a checkpoint name and if it exists send them to that checkpoints location.
Alternatively you could save that on the player then do a save game and load that save every time you load into a new level.
|