I wasn’t sure whether or not to put this in the Storyboard forum or not, but I just started trying out the Corona Starter SDK so I hope it’s alright posting in this one.
I’m trying to wrap my head around why
[lua]storyboard.gotoScene( “menuScene”, “fade”, 400 )[/lua]
works when I use it in main.lua, but when I use it in menuScene.lua through a button press
[lua]local function onButtonRelease( event )
local phase = event.phase
if “ended” == phase then
print(“You pressed and released a button!”)
storyboard.gotoScene(“gameScene”, “fade”, 400)
end
end[/lua]
or a number of other ways I only get the scene change and not the effect. I’ve tried having an options function like in the API Docs, and using different effects, but it always just pops into the new scene regardless of what I do. I’m not getting any errors either. Is there something I’m missing?