Composer not removing whole scene

Hello,

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, 

Thanks

Rob

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, 

Thanks

Rob

oh god!

I’m with this problem now. 

I will return to Storyboard

This should have been fixed.

Works fine for me.

Hi, so what builds were people using?

I’m 2189 - and am just working on transitioning from storyboard - have this problem! But it could be Just my code thats the problem?

So if someone’s using 2189 and it’s working then “it’s obviously me that’s the problem”.

T.

2189 here as well, and I use composer.removeHidden(), obviously in the scene that follows.

Can you post your code? Perhaps we can spot potential issues.  A test case would also be quite helpful.

Rob

@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.

T.

oh god!

I’m with this problem now. 

I will return to Storyboard

This should have been fixed.

Works fine for me.

Hi, so what builds were people using?

I’m 2189 - and am just working on transitioning from storyboard - have this problem! But it could be Just my code thats the problem?

So if someone’s using 2189 and it’s working then “it’s obviously me that’s the problem”.

T.

2189 here as well, and I use composer.removeHidden(), obviously in the scene that follows.

Can you post your code? Perhaps we can spot potential issues.  A test case would also be quite helpful.

Rob

@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.

T.