i have this code in my main.lua
local storyboard = require(“storyboard”)
math.randomseed(os.time())
display.setStatusBar(display.hiddenStatusBar)
storyboard.gotoScene(“scene1”)
i then have this in my scene 1.lua (just the beginning of my program)
local storyboard = require(“storyboard”)
local scene1 = storyboard.newScene()
local startup = display.newText(“CLICK ANYWHERE TO START”, 0, 0, native.systemFontBold,20)
local warning = display.newText("DONT FORGET THE NARWHALS A RAGING DIABETIC ", 0, 0, native.systemFontBold,20)
startup.x = display.viewableContentWidth /2
startup.y = display.viewableContentHeight / 2
warning.x = (display.viewableContentWidth /2)
warning.y = (display.viewableContentHeight / 2) + 50
when i run the app it gives me the error
?:0: attempt to concatenate the global ‘sceneName’ (a nil value) stack traceback:
?: in function ‘gotoScene’
main.lua:4: in main chunk
can anyone tell me what I am doing wrong because I can not figure it out for the life of me