FromSpriteSheetOptions
Index
Properties
optionaldurationPerFrameMs
frameCoordinates
The list of (x, y) positions of sprites in the SpriteSheet of each frame, for example (0, 0) is the the top left sprite, (0, 1) is the sprite directly below that, and so on.
You may optionally specify a duration for the frame in milliseconds as well, this will override the default duration.
optionalreverse
Optionally specify the animation should be reversed
optionalspeed
Optionally set a positive speed multiplier on the animation.
By default 1, meaning 1x speed. If set to 2, it will play the animation twice as fast.
spriteSheet
SpriteSheet to source the animation frames from
optionalstrategy
Optionally specify the animation strategy for this animation, by default animations loop AnimationStrategy.Loop
Optionally specify a default duration for frames in milliseconds