I migrated to Composer from Storyboard and I am having issues. In the Introducing the Composer API Tutorial, the scenetemplate.lua has the following comments
--------------------------------------------------------------------------------- -- All code outside of the listener functions will only be executed ONCE -- unless "composer.removeScene()" is called. ---------------------------------------------------------------------------------
Unfortunately, this has not been the case for myself. After exiting a scene, I have tried both composer.removeScene and composer.removeHidden with both false and nil arguments for the shouldRecycle parameter.
When I try to go to a scene that I previously attempted to removed (via the functions above), it is not re-executing the code outside the listener functions.
Is this a potential bug? Has anyone else seen this issue? Has anyone seen the opposite?
This looks like a bug. Can you file a bug report please? You should be able to do a couple of simple scenes. The project needs to have a config.lua and build.settings with it,
This looks like a bug. Can you file a bug report please? You should be able to do a couple of simple scenes. The project needs to have a config.lua and build.settings with it,
@eriklen - 2189 working - QED then the problem is “the user - ME”
Hmm i think my problem was incorrect use of removeScene - have now placed it in scene:show - did phase - calling the previous scene’s name (without true) ====> composer.removeScene( “previous” ).
This gets the effect that i wished - when going back to previous - it starts again “as new” - i.e. the whole scene was removed.
as for code outside of listener functions - i have this in a function which is called in the scene:show.
@eriklen - 2189 working - QED then the problem is “the user - ME”
Hmm i think my problem was incorrect use of removeScene - have now placed it in scene:show - did phase - calling the previous scene’s name (without true) ====> composer.removeScene( “previous” ).
This gets the effect that i wished - when going back to previous - it starts again “as new” - i.e. the whole scene was removed.
as for code outside of listener functions - i have this in a function which is called in the scene:show.