Oddly, I’ve noticed this for a long time and never mentioned it, but here is my code to try and prevent the issue, but it’s not working.
if not _G.startedAlready then. -- "not" tests for the variable to be "nil" _G.startedAlready=1 print("Game starts") startGame(). --runs multiple times, after setting _G.startedAlready=1 end
Does anyone know why this code will run numerous times (multiple instances) on my iOS device? I’m seeing “Game starts” from the print statement numerous times in the iOS Console.