My animation not displaying properly..;(

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
TheEmperorOfLulz
Prole
Posts: 7
Joined: Wed Oct 05, 2011 9:10 am

My animation not displaying properly..;(

Post 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
Attachments
animtest.love
(2.82 KiB) Downloaded 100 times
There are 10 types of people. Those that understand binary, and those who don't!
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: My animation not displaying properly..;(

Post 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:

Code: Select all

	for i = 0, frames - 1 do
Here is the fixed .love:
animtest.love
(2.77 KiB) Downloaded 90 times
Help us help you: attach a .love.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: My animation not displaying properly..;(

Post by tentus »

Why not use the more recent version, found here?
Kurosuke needs beta testers
User avatar
TheEmperorOfLulz
Prole
Posts: 7
Joined: Wed Oct 05, 2011 9:10 am

Re: My animation not displaying properly..;(

Post 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
There are 10 types of people. Those that understand binary, and those who don't!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest