You forgot to set the save variable, I added a new layer that goes over all the frames with levels, and added this code in it:
// Add to this array all the frames that have levels
var Frames_With_Levels=[12,13,14,17,18,19,20,21,22,23,24,25,26];
// Check to see if the current frame is a level
if(Frames_With_Levels.indexOf(project.currentFrameNumber*1)!==-1){
// Set the save
window.localStorage.setItem("save",project.currentFrameNumber);
}
Try this:
squareadventures3-30-2021_10-07-56.wick (2.6 MB)
Try to play in classic mode first without loading the save, then pause the game, and restart it, and let me know if it takes you back to the level you were on