java - Switching between Scene and Activity -
i developing game using andengine scenemanager manage various scenes. in 1 scene have button passes control class extends activity (not scene) , uses xml file layout.
my problem in activity have button. clicking on button should open scene. using following syntax open scene doesn't anything.
scenemanager.getinstance().loadprelevel(engine, "levelfail"); where scenemanager scenemanager class , loadprelevel method use open activate loading scene , line of code works everywhere else in game.
does know how open scene activity's subclass.
first of all, game structure not @ all. it's better keep 1 activity initialize game start , rest of scene extends scene including splash!
i suggest this article clearing concept activity versus scene.
Comments
Post a Comment