final case class Sprite[M <: Material](bindingKey: BindingKey, material: M, animationKey: AnimationKey, animationActions: Batch[AnimationAction], eventHandlerEnabled: Boolean, eventHandler: ((Sprite[_], GlobalEvent)) => Option[GlobalEvent], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends DependentNode[Sprite[M]] with Cloneable with SpatialModifiers[Sprite[M]]
Sprites are used to represented key-frame animated screen elements.
- Companion:
- object
Type members
Inherited types
Value members
Concrete methods
Moves the sprite's playhead to a position down the timeline based on a value ranged 0.0 to 1.0, where 0.0 is the start and 1.0 is the end of the timeline.
Moves the sprite's playhead to a position down the timeline based on a value ranged 0.0 to 1.0, where 0.0 is the start and 1.0 is the end of the timeline.
- Value parameters:
- position
A value between
0.0d
and1.0d
- Returns:
Sprite[Material]