Hi. I have problems with multiple scene showing. When i print(composer.getScene( “logoScene” )), it gives me back table for scene objects. Is it possible, to go to specified scene instance, instead of making next scene and show all of them?
I’m not sure I follow your problem. Each .lua file should be a singular scene that you goto by calling:
composer.gotoScene( “sceneName” )
So for instance if you have a scene in a file “myscene.lua” you would do: composer.gotoScene( “myscene” )
Rob
I know about gotoScene, but problem is that when i do this it show me mainScene multiple times. I have 3 scenes. Main, city, addon. it goes like main->city->addon. And when i go to city, it shows one city scene. But when i go back to main, it casting one more scene. So is more and more main scenes, every time i open them.
Well, it was my misstake. I’ve realised, that in centre scene i have another touch listener for back button.
I’m not sure I follow your problem. Each .lua file should be a singular scene that you goto by calling:
composer.gotoScene( “sceneName” )
So for instance if you have a scene in a file “myscene.lua” you would do: composer.gotoScene( “myscene” )
Rob
I know about gotoScene, but problem is that when i do this it show me mainScene multiple times. I have 3 scenes. Main, city, addon. it goes like main->city->addon. And when i go to city, it shows one city scene. But when i go back to main, it casting one more scene. So is more and more main scenes, every time i open them.
Well, it was my misstake. I’ve realised, that in centre scene i have another touch listener for back button.