- _isPlaying
bool _isPlaying()
- _resChanged
void _resChanged()
- _setPlaying
void _setPlaying(bool playing)
- getAnimation
String getAnimation()
- getFrame
long getFrame()
- getOffset
Vector2 getOffset()
- getSpeedScale
double getSpeedScale()
- getSpriteFrames
Ref!SpriteFrames getSpriteFrames()
- isCentered
bool isCentered()
- isFlippedH
bool isFlippedH()
- isFlippedV
bool isFlippedV()
- isPlaying
bool isPlaying()
Return true if an animation if currently being played.
- opAssign
AnimatedSprite opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(AnimatedSprite other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- play
void play(StringArg0 anim)
Play the animation set in parameter. If no parameter is provided, the current animation is played.
- setAnimation
void setAnimation(StringArg0 animation)
- setCentered
void setCentered(bool centered)
- setFlipH
void setFlipH(bool flip_h)
- setFlipV
void setFlipV(bool flip_v)
- setFrame
void setFrame(long frame)
- setOffset
void setOffset(Vector2 offset)
- setSpeedScale
void setSpeedScale(double speed_scale)
- setSpriteFrames
void setSpriteFrames(SpriteFrames sprite_frames)
- stop
void stop()
Stop the current animation (does not reset the frame counter).
- animation
String animation [@property getter]
String animation [@property setter]
The current animation from the frames resource. If this value changes, the frame counter is reset.
- centered
bool centered [@property getter]
bool centered [@property setter]
If true texture will be centered. Default value: true.
- flipH
bool flipH [@property setter]
If true texture is flipped horizontally. Default value: false.
- flipH
bool flipH [@property getter]
If true texture is flipped horizontally. Default value: false.
- flipV
bool flipV [@property getter]
bool flipV [@property setter]
If true texture is flipped vertically. Default value: false.
- frame
long frame [@property getter]
long frame [@property setter]
The displayed animation frame's index.
- frames
SpriteFrames frames [@property getter]
SpriteFrames frames [@property setter]
- offset
Vector2 offset [@property getter]
Vector2 offset [@property setter]
The texture's drawing offset.
- playing
bool playing [@property getter]
bool playing [@property setter]
- speedScale
double speedScale [@property getter]
double speedScale [@property setter]
Sprite node that can use multiple textures for animation.
Animations are created using a SpriteFrames resource, which can be configured in the editor via the SpriteFrames panel.