Page 1 of 1

AnAL + full spritesheet

Posted: Tue Nov 18, 2014 4:58 pm
by Eratsu
Hey guys, I have a trouble to set a sequence of animation with AnAL library.

Look this is a full spritesheet and I want to set each animation coordenades
Image

this is my load code:

Code: Select all

	kyo = love.graphics.newImage("kyo/kyo.png")

	player = {
		x = 50,
		y = 50,
		speed = 300,
		animations = {
			right = newAnimation(kyo, 56, 116, 0.1, 0) --walking to the right
		}
	}
teste.love
(3.32 MiB) Downloaded 149 times

Re: AnAL + full spritesheet

Posted: Tue Nov 18, 2014 6:21 pm
by Doctory
i dont know how to help you, but for future questions make your games windowned, not fullscreen

Re: AnAL + full spritesheet

Posted: Tue Nov 18, 2014 10:25 pm
by artofwork
Although i am not familiar with the ANAL Lib, In order to create an animation sequence from that sprite sheet you would be required to create custom functions due to the fact that each character sequence has different dimensions and timing.

Re: AnAL + full spritesheet

Posted: Thu Nov 20, 2014 11:48 am
by bartbes
I have no idea what I should be seeing, or what the problem is. Could you elaborate?

Re: AnAL + full spritesheet

Posted: Fri Nov 21, 2014 9:55 am
by DmL
For ease of use, you will probably want to split each set of animations into their own sheets. You'll also want to have them spaced evenly. You could use the GIMP for this.