I've just started out using craftyjs and am running into a problem.
I have a sprite sheet that has two rows for the same animation. Top row has 4, bottom has 3.
I can't figure out how to get it to play through all 7 images. I can get it to play through one row or the other but not through them all.
This is the main function I have. Note the commented out section. I can get it to work fine if I explicitly set each frame. It's not too bad for this one since I only have 7 of them.... but I also have some that have 100+!
function talk(){
var talker = Crafty.e('2D, Canvas, talk_start, SpriteAnimation');
/*
.reel('talk', 1000 ,[
[0,0],[1,0],[2,0],[3,0],
[0,1],[1,1],[2,1]
])
*/
talker.reel('talk', 1000, 0, 0, 6);
talker.animate('talk', -1);
}
Is there any way to make it go through all rows on the sprite sheet without having to manually create the frames?
Thanks in advance!