GLBasic forum

Main forum => GLBasic - en => Topic started by: kaotiklabs on 2009-Nov-08

Title: How could I flip animations?
Post by: kaotiklabs on 2009-Nov-08
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?

Title: Re: How could I flip animations?
Post by: MrTAToad on 2009-Nov-08
You've got a few choices :

Title: Re: How could I flip animations?
Post by: Schranz0r on 2009-Nov-08
POLYVECTOR or ZOOMSPRITE with negativ values
Title: Re: How could I flip animations?
Post by: kaotiklabs on 2009-Nov-08
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