I have an odd issue in a game I am making, and have managed to reproduce the error with some test code.
The first time through my game, I present the user with some dialog and then once they clear it a loop runs creating some sprites. Once all the sprites are destroyed the dialog is represented, but the second time around the loop actually runs before the dialog box is cleared.
I’m not sure why this is occurring nor how to fix it. Any help would be appreciated!