So in a game I'm making I have it to where when you die it resets all global variables, but recently I've needed it to reset all but 2 or 3 variables. Is there a way to put variables into a tag then have it reset all of those, or will I have to make it reset all of them separately?
Develop games in your browser. Powerful, performant & highly capable.
You could always store the ones that are to be unchanged as local variables or in an array, then reset, then set those global variables back to their original value afterwards using the stored data.