First time back in the forum since Corona became Solar. Greets to all!
I am having a frustrating issue. I have a main menu scene which shows some buttons for how to proceed (e.g. play game, view high scores, how to play, etc.)
Right now these appear with an elastic bounce when the scene is displayed, which adds to the look and feel and makes it more fun. The problem is that when one of these buttons are pressed, I go to a new scene based on what they chose. When they return from that scene to the main menu, the buttons are all there momentarily, then they abruptly disappear, then bounce back in. Ugly.
I complete understand why this is happening, so I then chose to set the alpha for each button to 0 when they are pressed, hoping that would hide them from the scene so that when the user returns they won’t be visible (and get the ugly double flash). I have tried doing this in the button clicked event for each button, I have tried doing this in the main menu’s scene:hide event.
Most of the time it’s fine, but 30-40% of the time there will be a random number of buttons which don’t get hidden, so when the user returns to the main menu, there will be 1, 2 or even 3 buttons which initially show, then are hidden, then bounce back in.
So this seems to be some sort of timing issue (?).
I guess I could just go back and get rid of the fun bounce, but now I really like how it makes the game’s main menu ‘feel’, so I’d like to figure this out.
Any suggestions on where I am going wrong?