Page 1 of 1
My animation not displaying properly..;(
Posted: Sun Jan 29, 2012 8:14 pm
by TheEmperorOfLulz
Simple thing, my animation just doesn't want to play like i want it to. The first frame of 4 is all messed up! Mind taking a look and seeing if you can find what's going on? Attached the .love beneath.
Thanks:)
TheEmperorOfLulz
Re: My animation not displaying properly..;(
Posted: Sun Jan 29, 2012 10:40 pm
by Robin
First, please use
require("animation") instead of
love.filesystem.load("animation.lua")().
Second, you don't have to use
love.image.newImageData.
Third, I fixed it by replacing line 48 of animation.lua by:
Here is the fixed .love:
Re: My animation not displaying properly..;(
Posted: Mon Jan 30, 2012 12:47 am
by tentus
Why not use the more recent version, found
here?
Re: My animation not displaying properly..;(
Posted: Mon Jan 30, 2012 9:01 am
by TheEmperorOfLulz
Ok guys, thankyou:)
tentus wrote:Why not use the more recent version, found
here?
I just copied the animation.lua found in example.love, didn't know it was outdated:D