So, I have decided to give storyboard a try, and have been going through the examples. However, when I use the following code, it will go from one scene to another, but without the transition effect or delay.
This is my main.lua file, and having it go to main_menu.lua. The transition I use in Director works fine, but like I said, I’m trying to use storyboard. Any help would be appreciated.
[lua]-- REQUIRE STORYBOARD
local storyboard = require “storyboard”
–system.activate (“multitouch”)
local ui = require(“ui”)
display.setStatusBar( display.HiddenStatusBar )
splash = display.newImage(“Default_background.png”)
local function intro()
storyboard.gotoScene( “main_menu”, “fade”, 500 )
end
timer.performWithDelay(2000, intro);
– END OF YOUR IMPLEMENTATION
– “createScene” event is dispatched if scene’s view does not exist
scene:addEventListener( “createScene”, scene )
– “enterScene” event is dispatched whenever scene transition has finished
scene:addEventListener( “enterScene”, scene )
– “exitScene” event is dispatched before next scene’s transition begins
scene:addEventListener( “exitScene”, scene )
– “destroyScene” event is dispatched before view is unloaded, which can be
– automatically unloaded in low memory situations, or explicitly via a call to
– storyboard.purgeScene() or storyboard.removeScene().
scene:addEventListener( “destroyScene”, scene )
return scene[/lua]
[import]uid: 7710 topic_id: 28161 reply_id: 328161[/import]