Skip to content

Animation

const Animation: Component

Plays count spritesheet frames from start at fps, writing Sprite.frame. Loops unless once is 1, in which case it holds the last frame. time is seconds since it started; set it to 0 to restart.