How To Fall A Sprite Over Another Using And Engine In Android?
Hi how can i put a one sprite over another sprite as seen in the image below as you can seen there is two sprite in the image (1).The sprite in the top should place over the spri
Solution 1:
Just add this code!
this.mBadges[1] = new Sprite(0, CAMERA_HEIGHT - 300, this.mBadgeTextureRegion, this.getVertexBufferObjectManager());
scene.attachChild(this.mBadges[1]);
this.mBadges[1].setPosition(positionX, mBadges[0].getY()-mBadges[1].getHeight());
Whatever your positionX is replace it by that.
Post a Comment for "How To Fall A Sprite Over Another Using And Engine In Android?"