How Do I Build Multi-Layered Scenes With AndEngine?
I am a noob to android development and i am trying to learn how to use AndEngine. I want to construct a scene where a sprite appears from behind an object in the foreground and th
Solution 1:
If I understood correctly, you need layers.. You can use entities as layers:
Entity backgroundLayer = new Entity();
backgroundLayer.attachChild(face);
Entity foregroundLayer= new Entity();
foregroundLayer.attach(foreground);
scene.attachChild(backgroundLayer);
scene.attachChild(foregroundLayer);
I hope this will help you.
Post a Comment for "How Do I Build Multi-Layered Scenes With AndEngine?"