Animation starts at random frames
Hello there, when a certain animation is triggered by collision in my game it always starts from a different point. Here is an example of my code:
drawObstacle = function()
if hit == 0 //checks collision
then screen.drawSprite("obstacle.0",0,0,25,35)
else screen.drawSprite("obstacle",0,0,25,35)
end
end
Is there a way to set the animation off of frame (0) strictly?
I'm grateful for any advice and good luck with your own projects ;)