Discord
Login
Community
DARK THEME

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 ;)

Under microScript V2 you can set the frame of the sprite directly:

mysprite.setFrame(0)

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community