Skip to content Skip to sidebar Skip to footer

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:

EntitybackgroundLayer=newEntity();
backgroundLayer.attachChild(face);

Entity foregroundLayer= newEntity();
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?"