Hey guys my game is about 90 % done. Core gameplay is good, I learned how to create high scores and even have separate Webstorage variables for number of this sprite destroyed, number of times this powerup was used...
I was reading the manual recently and only recently learned the concept of LOCAL VARIABLES. Having read only the parts I thought I needed, I wrongfully assumed that all global variables in one event sheet were "local to that event sheet." Now since my game is an endless wave destroyer type, most of my variables are used as Booleans for (is the game paused? Is my character currently 'dead'? Is the starting countdown over? ) and holders of information such as sprites destroyed for the current round. I tried to "localize" everything by creating a group and dragging every event and variable in there and when I pressed F5, the results were disastrous.
My current sticking point is that I'm trying to create a separate layout that holds badges and medals for achievements and those have global variables as well that compare variables such as "Number_of_Powerups_Used_When_The_Game_Was_Lauched" to "PowerUps_Used_This_Round." and as you can probably tell, using the "System: Reset Global Variables" also resets the quantity in a separate layout to 0.
I know it's my fault for not reading the manual but is there a way I could reset only my choice variables WITHOUT having to create an action for each? I think my next best option is to create a BOOLEAN that goes: "Reset_This_Event_Sheets_Variables = 1" but I don't want to have to do that if it isn't necessary.
Thank you!!