Page 1 of 1

Animation drawing

Posted: Wed Feb 27, 2008 12:14 pm
by incognito54
Hey!

I've been trying love for the past few days (one has got to do something in the work breaks) and I can't seem to find a way to draw an animation inverted in relation to the Yy axis. Do I have to have separate animations for left/right facing character?

Thank you!

Re: Animation drawing

Posted: Wed Feb 27, 2008 1:15 pm
by mike
Ah yes, we have discussed this but the idea passed from our minds a long time ago.. not sure if we have any plans of implementing this anytime soon. Do we, rude?

Re: Animation drawing

Posted: Wed Feb 27, 2008 3:40 pm
by rude
Hello, and welcome. 8-)

That is only a matter of scaling with negative values ... or a least I thought so until I tried it. The sprite has a horrible tendency to disappear when one value is negative and not the other. Great. ^^

Code: Select all

function draw()
  -- This was supposed to work.
  love.graphics:draw(anim, x, y, 0, -1, 1)
end
It will be fixed in 0.2.1, of course, but until then you'll have to use separate animations for left/right.

Re: Animation drawing

Posted: Wed Feb 27, 2008 6:49 pm
by incognito54
Yeah,I tried that -1 trick before posting. :P
Glad I pointed out a valid bug! LOVE is really fun to toy with

Re: Animation drawing

Posted: Wed Feb 27, 2008 7:00 pm
by rude
incognito54 wrote:Glad I pointed out a valid bug!
It's really helpful. ^^

I remember testing negative scaling just before the 0.2.0 release, but I obviously forgot to test it with only one negative value.

Re: Animation drawing

Posted: Thu Feb 28, 2008 2:01 am
by Merkoth
Oh, and here you will find tons of rpgmaker sprites, backgrounds and stuff you can happily use without rpgmaker.

And rude, Everything doesn't seem to have any moderators, maybe you just need to assign yourself as one.

Re: Animation drawing

Posted: Thu Feb 28, 2008 3:14 pm
by rude
Fleg figured it out. Needed to set rights on the Administrators group.