It looks like you're new here. If you want to get involved, click one of these buttons!
main.lua:20: attempt to call method 'changeScene' (a nil value)This are my main.lua codes:
SceneManager = gideros.class(Sprite) sceneManager = SceneManager.new({ ["mainmenu"] = mainmenu }) stage:addChild(sceneManager) -- show main menu sceneManager:changeScene("mainmenu", 1, SceneManager.moveFromRight, easing.outBack) -- main menu sceene init mainmenu = gideros.class(Sprite) function mainmenu:init() local a = Bitmap.new(Texture.new("ball.png", true)) self:addChild(a) end |
Comments
Also, you should not use gideros.class to create objects, but Core.class(Sprite) ie. to create a Sprite - it should work anyway but the current syntax uses Core.class()
Likes: antix, greengeek