So yeah, i'm new to Gideros and recently found about the sceneManager class and i've been lurking around google looking for tutorials about it and found some but unfortunately i've encountered a problem and can't seem to find a solution.
I've already included the scenemanager.lua into my project and in my main.lua i've placed this code:
----------------
local sceneManager = sceneManager.new({
["splash"] = splash,
["title"] = title,
})
stage:addChild(sceneManager)
----------------
and i've been getting an error "attempt to index global 'SceneManager' (a nil value)"
i've read that this error means that the "sceneManager" doesn't exist that's why it's a nil value and could be fixed by having the scenemanager.lua but it still appears. can anyone help me? thank you in advance
Comments
ps.
http://www.giderosmobile.com/DevCenter/index.php/Forum_FAQ#How_can_I_highlight_my_Lua_code_in_the_forum_post.3F
Likes: xGuilt
https://play.google.com/store/apps/developer?id=My+name+is+Originality
Likes: xGuilt
https://play.google.com/store/apps/developer?id=My+name+is+Originality
unfortunately i have met another problem. (sorry if i'm asking too much)
Likes: xGuilt
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
Likes: xGuilt
Well the only codes left to see is the:
About this code
2) Scenes must inherit at least from Sprite
3) this code should be in the main.lua because it will be executed last, when all lua files of defined scenes are already found and executed