Composer Scene jumping back and forth

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.

Hello, I can help you with this… I personally had this exact same problem… If you want faster help you can add me on skype at “ruvimkuz2000” 

But what you need to do is… add the falling object into a table and add a individual value to the object and then when going to game over you remove the table…

Good Luck!

so for example:

local t = {}

table.insert(obj, 1)

function gameOver()
  table.remove(t)

end

is that basically what youre saying?

oh excuse me, id assign a different value for each obj though correct?

Ok so you added me on skype… ill help you from there…

Hello, I can help you with this… I personally had this exact same problem… If you want faster help you can add me on skype at “ruvimkuz2000” 

But what you need to do is… add the falling object into a table and add a individual value to the object and then when going to game over you remove the table…

Good Luck!

so for example:

local t = {}

table.insert(obj, 1)

function gameOver()
  table.remove(t)

end

is that basically what youre saying?

oh excuse me, id assign a different value for each obj though correct?

Ok so you added me on skype… ill help you from there…