Hi all!
I need help with Gideros Scene Manger. I was on
http://appcodingeasy.com/Gideros-Mobile/Manage-Scenes-in-Gideros-Mobile , and I was following all the steps, but when I try to run the Player, I get an error.
Here is the code of my file:
main.lua
sceneManager = SceneManager.new({
["loadmain"] = loadmain,
["mainmenu"] = mainmenu,
["createEvent"] = createEvent,
["Party"] = Party,
["Vacation"] = Vacation,
["Other"] = Other,
["ViewEdit"] = ViewEdit,
["Settings"] = Settings,
["Help"] = Help,
["FAQ"] = FAQ,
["About"] = About
}]
stage:addChild(sceneManager)
sceneManager:changeScene("mainmenu", 1, SceneManager.moveFromRight, easing.outBack) |
mainmenu.lua
mainmenu = gideros.class(Sprite)
function mainmenu:init()
local background = Bitmap.new(Texture.new("Images/test.png"))
stage:addChild(background)
end |
Here is the Error:
main.lua:13: ')' expected (to close '(' at line 1) near ']'
Also, I've downloaded the scenemanager.lua file and added it to my project. I followed all the steps on AppcodingEasy's Website and I still can't get it to work.
I hope someone could help me with this
Thanks in Advance!
-Landon
Comments
WOW thats a silly mistake!
-Landon
Lead Coder and Designer