How to i remove and change a scene on collision?

how do i change scenes on collision? i tried composer.gotoScene(“menu”) and it works and goes the menu scene but doesnt remove my game scene… like everything from game.lua stays and menu.lua just overlays the game.lua… heres a video if you wanna see whats happening…

https://youtu.be/dV5Xbihqbsw

i have tried composer.removeScene(“game”)  – and then 

                   composer.gotoScene(“menu”)

 but it doesnt remove my objects from game.lua

Are you doing a:

sceneGroup:insert( yourObject )

for each object you create (in scene:create() and scene:show())?  For objects created outside of those two functions are you doing a:

scene.view:insert( yourObject )

Where “yourObject” is the thing you are creating?

Rob

if i add the sceneGroup:insert to my objects they just dont apear… like the physics hybrid mode shows its there but you cant acuualy see it…

Then your background needs to be inserted into the group too.

when i add any scenegroup my simulator starts freaking out … but i figured out whats my problem was and i fixed it…

Are you doing a:

sceneGroup:insert( yourObject )

for each object you create (in scene:create() and scene:show())?  For objects created outside of those two functions are you doing a:

scene.view:insert( yourObject )

Where “yourObject” is the thing you are creating?

Rob

if i add the sceneGroup:insert to my objects they just dont apear… like the physics hybrid mode shows its there but you cant acuualy see it…

Then your background needs to be inserted into the group too.

when i add any scenegroup my simulator starts freaking out … but i figured out whats my problem was and i fixed it…