Postby dragon3025 » Mon Feb 08, 2021 8:56 pm
I noticed that my "globalSave" variables were being updated even my player dies or I exit through the menu. So I switched to transferring the global save variable into a local to make updates to the local, then transferring the updates back into global in "onExitLevel()", but I realized that "onExitLevel()" will also trigger when you exit from death or the menu.
Is there a way to only update a globalSave variable when the player enters a goal or goes off screen?