Hi everyone, I’m fairly new to the corona sdk, so I’m a bit confused when it comes to scenes so please bare with me.
I’m trying to create a simple game where there are falling objects and you have to dodge them as long as you can. Once you get hit by an object (and i used the physics engine to do this) i change scenes to a game over type screen that allows you to retry. However, when the i press my retry button, it briefly goes to the game screen, then jumps back to the game over screen.
Now, I’m not entirely sure what the issue can be because I think I’m removing the scene correctly. I remove all listeners, i cancel all timers and transitions and i use the removescene() function to remove all the display objects.
However, while it does work as intended when you die, ie goes to game over scene, when i hit my retry button, it goes to my game scene for a split second, then goes back to game over. I dont think there is anything wrong in the game over scene as it does transition to the game scene. Maybe I am forgetting to remove something on the game scene. Ive tried stopping the physics engine, but to no avail.
Please help!
Thank you,
Mike.