This code is meant to check if the player went into the settings level and then save the position the player was at so the player doesn’t have to restart everytime they go into the settings and come back to the level. The once behavior is one of the core behaviors to this since it’s supposed to check once everytime the player enters a level. But the once only activates once during the whole game. Instead of activating during the beginning of each level. This is annoying and is what led me to delete some games since I didn’t have any other option. The reason this is in the help requests is because I don’t know if this has happened to others and if it is intentional or if it is truly a bug.
Not anymore unfortunately, since I deleted those because I abandoned them because of that. I’ve reloaded the tab multiple times when I first encountered the problem. It didn’t work, which has led me to assume it is intentional instead of a bug.
Did you see the white outline of the once and always behaviors turn slightly yellow? If so, then it did activate, and the problem probably lies in the coding.
If the triggers once and always didn’t grow lighter/activate, then there is likely a bug behind it.
If it didn’t activate, then you should probably switch this topic to bug reports.
Okay so if all the other options of what people said don’t work:
I think what is happening here is you are playtesting the game by selecting the player object on the Level editor, which means when you see its logic it only shows the logic triggers for that object (this is represented in the bottom left corner with a text saying “Viewing Logic from Object 123”.
So every time you change the level, a new player object is created/loaded, so the object won’t be the same as the one you selected on the editor.
If you want to see the Logic running from ALL player objects, you have to open the Object Behaviors from the Library on the bottom toolbar.
Basically the Once is still running on all the player objects, you are just not seeing it on the preview because that player object was deleted once you loaded a new level.