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.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
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 |
|||
|
|
