It looks like you're new here. If you want to get involved, click one of these buttons!
Scene = Core.class(Sprite); function Scene:init() -- common base class for all scenes end |
SceneOne = Core.class(Scene); function SceneOne:init() self:addChild(Bitmap.new(Texture.new("assets/scene1.jpg"))); -- throws here with -> attempt to call method 'addChild' (a nil value) end |
Comments
most probably SceneOne file gets loaded before Scene file was loaded, thus
What you would need to do, is to right click on SceneOne file in Gideros Studio, choose Code Dependencies and select the file where you have Scene defined
and it should work
Thanks