I have used the pScene.detachChild(face); to remove Sprite from scene. It hide face object but not delete from the scene. How can i remove from scene?
I have used the pScene.detachChild(face); to remove Sprite from scene. It hide face object
Share
Removing:
http://code.google.com/p/andengineexamples/source/browse/src/org/anddev/andengine/examples/SpriteRemoveExample.java
Example code:
scene.detachChild(childSpriteVariable);
Adding:
http://code.google.com/p/andengineexamples/source/browse/src/org/anddev/andengine/examples/SpriteExample.java
Example code:
final Sprite face = new Sprite(centerX, centerY, this.mFaceTextureRegion);
scene.attachChild(face);
I’m basically getting this information by browsing this site. It seems to be the only official docs this engine has:
http://code.google.com/p/andengineexamples/