SpriteSequence QML Type

繪製子畫麵動畫 更多...

import 語句: import QtQuick 2.7
繼承: Item

特性

方法

詳細描述

SpriteSequence renders and controls a list of animations defined by Sprite 類型。

完整細節,見 子畫麵動畫 概述。

另請參閱 Sprite animations with SpriteSequence .

特性文檔編製

currentSprite : string

The name of the Sprite which is currently animating.

goalSprite : string

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

Sprite states have defined durations and transitions between them, setting goalState will cause it to disregard any path weightings (including 0) and head down the path which will reach the goalState 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 goalState from the starting point of the goalState it will continue to do so until goalState is set to "" or an unreachable state.

interpolate : bool

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

默認為 true。

running : bool

Whether the sprite is animating or not.

默認為 true

sprites : list < Sprite >

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


方法文檔編製

jumpTo ( string sprite )

此函數導緻 SpriteSequence to jump to the specified sprite immediately, intermediate sprites are not played. The sprite argument is the name of the sprite you wish to jump to.