IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

SpriteSequence QML Type

Draws a sprite animation.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SpriteSequence QML Type▲

  • Import Statement: import QtQuick

  • Inherits: Item

  • Group: SpriteSequence is part of qtquick-visual-utility

Detailed Description▲

SpriteSequence renders and controls a list of animations defined by Sprite types.

For full details, see the Sprite Animations overview.

See Also▲

Property Documentation▲

 

currentSprite : string▲

The name of the Sprite that is currently animating.

goalSprite : string▲

The name of the Sprite that the animation should move to.

Sprite states have defined durations and transitions between them; setting goalSprite will cause it to disregard any path weightings (including 0) and head down the path that will reach the goalSprite quickest (fewest animations). It will pass through intermediate states on that path, and animate them for their duration.

If it is possible to return to the goalSprite from the starting point of the goalSprite, it will continue to do so until goalSprite is set to "" or an unreachable state.

interpolate : bool▲

If true, interpolation will occur between sprite frames to make the animation appear smoother.

Default is true.

running : bool▲

Whether the sprite is animating or not.

Default is true.

sprites : list<Sprite>▲

The sprite or sprites to draw. Sprites will be scaled to the size of this item.

Method Documentation▲

 

jumpTo(string sprite)▲

This function causes the SpriteSequence to jump to the specified sprite immediately; intermediate sprites are not played.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+