I want to ask that I have a player in my game. I may walk. I have a image which has five different frames for walk and two frames for standing position. I want to ask that how can I change the images on runtime depending on the player state? I have loaded the image in tiledtextureregion. Also player can walk in forward and backward direction as well. How to use the same image strip for walking back and forth? I am new to andengine.


1 Answer 1


You can flip the texture like so: myTextureRegion.setFlippedHorizontal(true);

or by using the sprite

mySprite.setFlippedHorizontal(true); // set false to flip it back

Have you looked at AnimatedSprite class? AnimatedSpriteClass

You could google for examples. It's in the API


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .