When I click here it doesn’t bring me a template. It brings me here http://docs.coronalabs.com/api/library/storyboard/index.html#scenetemplate.lua
Can you copy my main.lua and edit it to what I need and then post that???
And my display objects in bcat.lua are in the create scene function
No. Read through some tutorials and the documentation, and learn how storyboard works.
I said main.lua, not bcat
That is the right link. Make sure you are also logged into the corona website
Actually main.lua should have very little storyboard code. main.lua is for initializing things and as a springboard to storyboard scenes.
main.lua should pretty much have:
local storyboard = require(“storyboard”)
and
storyboard.gotoScene(“menu”) – or whatever your first scene is
Any display objects you create in main.lua won’t be part of a storyboard scene and will sit above your storyboard scene. Generally I don’t create any display things in main.lua unless I’m building a tabBar based business app where I want the tabBar to stay on the screen regardless of what scene is actually playing.
@Rob Miracle
That’s exactly what I have in my main.lua
But an I missing anything from from my bcat.lua.
And can I create a function that on release of a button that next scene appears
But you have this in your main.lua:
local backround = display.newImage(“backround.jpg”)
backround:setReferencePoint(display.CentreReferencePoint)
backround. x = 0
backround. y = 210
those will sit in front of any storyboard scenes and hide anything behind them.