when you create a scene, traditionally you create at the end of your lua file some listeners :
scene:addEventListener( "createScene", scene ) scene:addEventListener( "enterScene", scene ) scene:addEventListener( "exitScene", scene ) scene:addEventListener( "destroyScene", scene )
Do I need to remove this listeners somewhere when I leave this scene?
That is one reason. The other is so that the scenes can be transitioned on and off screen. Display objects not in storyboard scenes sit on top of all storyboard managed objects, so if you want them to play nice with everything, you need to put it into a scene’s group.
That is one reason. The other is so that the scenes can be transitioned on and off screen. Display objects not in storyboard scenes sit on top of all storyboard managed objects, so if you want them to play nice with everything, you need to put it into a scene’s group.