Download to read offline




![Load Resources
textureExample = new Texture(512, 512);
regionExample = TextureRegionFactory.createTiledFromAsset(
textureExample, this, "example.png", 0, 0, 3, 4);
mEngine.getTextureManager().loadTexture(textureExample);
spriteExample = new AnimatedSprite(10, 10, regionExample);
spriteExample.animate(new long[]{100,100,100}, 0, 2, true);](https://image.slidesharecdn.com/20111102animasidiandengine-130212032324-phpapp01/75/Animasi-di-andengine-5-2048.jpg)



This document discusses how to create an animated sprite in AndEngine using tiled textures. It explains that the sprite uses a tiled texture region made up of 3 columns and 4 rows. It shows how to declare texture and region attributes, initialize the engine and camera, load the texture and region, create an animated sprite from the region, and add the animated sprite to a scene to display the animation.




![Load Resources
textureExample = new Texture(512, 512);
regionExample = TextureRegionFactory.createTiledFromAsset(
textureExample, this, "example.png", 0, 0, 3, 4);
mEngine.getTextureManager().loadTexture(textureExample);
spriteExample = new AnimatedSprite(10, 10, regionExample);
spriteExample.animate(new long[]{100,100,100}, 0, 2, true);](https://image.slidesharecdn.com/20111102animasidiandengine-130212032324-phpapp01/75/Animasi-di-andengine-5-2048.jpg)

