Hi!
I’m close to finishing my first game with Corona but I’ve encountered some problems when using composer.
My game has a menu scene, highscores scene and settings scene. The buttons (text objects with tap listeners) in the different scenes are at the same locations. Normally everything works just fine but if I spam the buttons quite quickly one out of two things happen.
1: I get a runtime error, this error varies but usually it’s either a) says it’s trying to cancel a timer which doesn’t exist or b trying to remove an event listener which again doesn’t seem to exist.
2: The screen goes blank.
I’m guessing number 1 happens because the buttons get pressed and the function scene:hide gets called before the timers and event listeners has time to be created in the scene:create function.
Why number 2 happens I don’t know.
I’ve tried some different games made with Corona and some of them have this same issue, spamming buttons especially if they appear in the place where a previous button from the scene before was placed crashes or hangs the game.
During normal play this isn’t an issue since spamming the buttons isn’t something players would usually do. But I want my game to function as best as possible, so ideally I’d like to solve this.
Any help would be greatly appreciated

