This is all i have in my entire project:
sceneManager = SceneManager.new({
["scene1"] = scene1,
["scene2"] = scene2,
})
stage:addChild(sceneManager)
i keep getting
"main.lua:1: attempt to index global 'SceneManager' (a nil value)
stack traceback:
main.lua:1: in main chunk"
how can i get my scene manager to work?
Comments
also right after adding sceneManager to the stage, you should choose desired scene to load (in case you didn't do it already)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
So in "scenemanager.lua" i have to add:
It is working now, thanks a lot!