Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Extended classes problem — Gideros Forum

Extended classes problem

pykasopykaso Member
edited May 2013 in General questions
Hello,
today i have one (maybe stupid) question.

Why i got this error?
CustomSceneManager = Core.class(SceneManager)
 
--this is OK
stage:addChild(SceneManager.new())
 
-- this failed
 
stage:addChild(CustomSceneManager.new())
 
>>  Error: (Sprite expected, got table)

Comments

  • ar2rsawseenar2rsawseen Maintainer
    edited May 2013
    Hello @pykaso ;)

    If I include sceneManager to the project and copy paste your code it works without any error.

    Thee must be something else causing this, are there any other code?
  • pykasopykaso Member
    Really, I tried it in the new project and it works.

    I forgot to add line:
    require("libs/scenemanager")
    after moving the file in directory.

    Yes, I know .. I have to think more :-B

    Thanks
Sign In or Register to comment.