Before I start let me say I really searched for my problem but couldn't seem to find a suitable answer.
So: I have basically 2 problems with anim8 right now
Number 1: the animation stops without going fully through. I realize this is because the trigger event stops. But how do I tell anim8 to do it anyway? Here is my current attempt:
Code: Select all
for i = #vikings, 1, -1 do
if CheckCollision(Ovie.x, Ovie.y, 48, 96, vikings[i].x,vikings[i].y, 116, 84) == false then
draw_Ovie()
else -- Ovie.lives = Ovie.lives - 1
animation:draw(img, Ovie.x, Ovie.y)
table.remove(vikings, i)
end
Number 2: The placement of the animation is also not on the position of my hero(Ovie). I started testing anim8 with a much simpler Spritesheet and since it worked fine in this case , I am a bit flabbergasted. I think it has to do with the picture itself and the fact that it isn't an optimal Spritesheet.( If you know an easy way to make a Spritesheet out of multiple different sized pictures, please tell me)
This monstrosity was made by my girlfriend, so don't be too shocked by the girlishness and overkill of stuff
Last but not least I give you my full lovefile for you to look at and criticize.
I know its awful and chaotic with hard coding , possible repetition and stupid placement. But hey its my first try and I will try to tidy up when I get this sucker to work I promise.