How could I flip animations?

Previous topic - Next topic

kaotiklabs

Hi,

I have an animation of the character walking to the right.
How could I reuse this animation for walking to the left?
Any way to flip easily the anims?

I have heard something about using negative values with drawanim but I´m not really sure if it works. I have try to test a bit but with some weird results.
Is this the way?

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

MrTAToad

You've got a few choices :


  • You could either somehow rotate and/or flip the graphics
  • Use a graphics package to flip the frames
  • Reverse the animation frame numbers

Schranz0r

POLYVECTOR or ZOOMSPRITE with negativ values
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

kaotiklabs

I believe polyvector should be better than zoomsprite because I´m working over a spritesheet and don´t want to grabsprite into memory.

Eitherway, thanks for the replies, I´m going to try, hope it works because I´ll safe 50% of the image files size.  =D
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!