Sorry, because of my english is not perfect, I didn't understand what you want to do.
If you have animation frames that walking right and you want to make frames walking left, the example I mentioned above helps you. There is walkanim.png in the Files folder. There are only four frames walking left but the cavemen can walk right in the example.
If you want backward animation frames, you should decrease frame variable.
Reminder about texture regions: the regions do not change physically the image (thus they do not use extra memory, do not need time to process the image and it's one of their main interest). So many settings do not affect the image until it is drawn. Flipping the image, for example, does not flip the texture backing up the region. It just flips the drawing on screen.
Same comments for sprites.
The explanation is just above your post. If you flip a region, it will be flipped only when drawn. So flipping a region and splitting regions from it do no produce flipped images. You have to flip each resulting frame.
You can create a loop after splitting to call Flip(True, False) for each frame or just add the minus sign while you draw your frames (which is slightly faster) as suggested by andymc. Doing a function for that is up to you.
A texture is the basis of everything else and it is rarely used as is. If you don't use Scene2D, you will draw texture regions or sprites. You should choose sprites if you need rotation, scaling, change of colors, etc. (advanced features). If you use Scene2D, the images will be drawn with lgScn2DImage. In the end, there's not a lot of choice.
What may be confusing is the word "sprite" that can refer to the lgSprite class or simply to an animated object on screen.
So (in your best judgement), what would you suggest would be best solution for an animated game, (walking/jumping with collision detection) would be best for a standard platform game with gravity and ground/landing detection?
(I did get the flip stuff to work, but having to make positional variations with the reverse sprites/textures).
I'm just just trying to piece things together as per your tutorial on creating a game and see what's possible?
So (in your best judgement), what would you suggest would be best solution for an animated game, (walking/jumping with collision detection) would be best for a standard platform game with gravity and ground/landing detection?
(I did get the flip stuff to work, but having to make positional variations with the reverse sprites/textures).
I'm just just trying to piece things together as per your tutorial on creating a game and see what's possible?
IMHO, every thing to display (UI, sprites, background) should be drawn and managed with the Scene2D classes (except if you need to use the Polygon sprite batcher for maximum performance or decal objects for an isometric game). I'm using the Scene2D widgets a lot currently for my own game and they save me a lot of time and work. Especially for handling events, scaling textures and doing animations. You can create complex sequence of animations with just a few lines. To handle collisions and gravity (for realistic jumps for example), use the lgBox2D classes. As everything new, you will lose some time to learn to use these new classes, but believe me, it's worth the time spent.
IMHO, every thing to display (UI, sprites, background) should be drawn and managed with the Scene2D classes (except if you need to use the Polygon sprite batcher for maximum performance or decal objects for an isometric game). I'm using the Scene2D widgets a lot currently for my own game and they save me a lot of time and work. Especially for handling events, scaling textures and doing animations. You can create complex sequence of animations with just a few lines. To handle collisions and gravity (for realistic jumps for example), use the lgBox2D classes. As everything new, you will lose some time to learn to use these new classes, but believe me, it's worth the time spent.
Hi Informatix, thanks for that.
I wouldn't ask someone I didn't respect for advice if I wasn't going to take it, so will give it a try and have a serious look to see what options are available?
Looking through the examples, I still can't find an animated moving sprite example with Scene2D though which worries me? I can handle jumps etc without the gravity etc using code, so the animation is the most important part of what I want to do.
Also, is there a definitive list of the available classes anywhere?
I know you have your own stuff to do and are very busy, so sorry to trouble you again, but one kick in the right direction could help immensely. Please feel free to offer the kick in any direction you want? I'll understand.