Checkpoint does not load correctly in Godot 4
I am developing a 2D game in Godot 4, and I am trying to create a “save and load (checkpoint)” system. Each scene’s name follows a pattern like “world_01”, “world_02”, etc. The character starts in the “world_01” scene, and upon reaching the end, advances to “world_02”. The location where the player starts is the location of the checkpoint, meaning that after passing scene 01, closing the application, and returning, the player should start in scene 02 (world_02). The code is successfully saving the checkpoint/scene, and upon closing and reopening, it also seems to load the checkpoint/scene, but when starting the game, it does not open and returns the error: