Component Graphics
(NOTE) A generated quad that addresses atlased image data for efficient frame-based animations and batched rendering.
| Methods | Properties | Base Classes | Derived Classes |
|---|---|---|---|
| Constructor | AnimationActive | basesprite | |
| AnimationSpeed | |||
| CurrentFrame | |||
| FlipX | |||
| FlipY | |||
| SpriteSource | |||
| StartFrame |
Properties
AnimationActive : boolean
If the Sprite animation should be playing on logic update, paused if false.
var AnimationActive : Boolean
AnimationSpeed : real
Scalar to the amount of time passed used to advance frames of animation.
var AnimationSpeed : Real
CurrentFrame : integer
Index of the frame the animation is currently on.
var CurrentFrame : Integer
FlipX : boolean
Flips the X axis of the Sprite's image (left/right).
var FlipX : Boolean
FlipY : boolean
Flips the Y axis of the Sprite's image (top/bottom).
var FlipY : Boolean
SpriteSource : spritesource
The resource defining one or more image sequences used for frame-based animation.
var SpriteSource : SpriteSource
StartFrame : integer
Index of the frame to start the animation on when the object is initialized, 0-based.
var StartFrame : Integer
Methods
Sprite : Void
constructor
Name Type Description function Sprite()