Scenes management:
Scene management is really important thing, since probably you will want to use multiple scenes, instead of multiple activities, it might be useful knowledge.
1. Switching scene:
To switch between scenes, you simply have to call this method:
1. Switching scene:
To switch between scenes, you simply have to call this method:
mEngine.setScene(scene);
While switching to different scene, engine will stop updating previous one.
2. Setting Child Scene:
You can set child scene to different scene, by calling:
You can set child scene to different scene, by calling:
scene.setChildScene(differentScene);
There is also possibility to decide if scene should be updated after setting child scene, you have to use same method, but with those parameters:
setChildScene(pChildScene, pModalDraw, pModalUpdate, pModalTouch)
HTML Comment Box is loading comments...