Hi,
I’m using composer to manage my scenes for my game. At the end of each level (game.lua) I display an overlay with a “continue” button (popup.lua).
I want to hide the overlay, then transition to game.lua with a slideLeft effect. However, this does not work:
composer.hideOverlay()
composer.gotoScene(“scenes.game”, {effect = “slideLeft”})
I see other people have asked this question before (e.g. https://forums.coronalabs.com/topic/65598-problem-restarting-a-scene/), but it’s usually in conjunction with a bunch of other questions and has gone unanswered - or the answers are old.
I’m currently developing using an old version of the Corona Simulator (Version 2015.2731 (2015.10.5)), so I’m wondering:
- has this issue been fixed if I upgrade? or
- if not, then how can I achieve the effect I want? (deleting and reloading the entire scene seems like an extremely inefficient option - and I’ve structured my code in such a way to avoid this).
Thanks!