Hey guys,
I’ve been using corona for a while and the app I’m currently making was built poorly with everything in the same file. So yesterday I decided to move everything around and set it up with Storyboard.
That’s when I got lost. So I went back to the basics and tried to make a very basic scene but upon doing so I couldn’t get it to work. I cant get my display object to show up? What am I doing wrong???
local storyboard = require "storyboard"
local scene = storyboard.newScene()
local box1
function scene:createScene( event )
local group = self.view
box1 = display.newRect( 100, 100, 100, 100 )
group:insert(box1)
end
function scene:enterScene( event )
box1.isVisible = true
end
scene:addEventListener( "enterScene", scene )
scene:addEventListener( "createScene", scene )
return scene
Thanks in advance. I read so much about storyboard but I guess I still don’t quite understand how to use it. [import]uid: 28246 topic_id: 33715 reply_id: 333715[/import]