Tween script interface
The ITweenState
interface represents an actively running tween. It derives from ITimelineStateBase which implements APIs in common between timelines and tweens, as a tween is a kind of temporary timeline. Many general playback APIs are part of ITimelineStateBase
; the ITweenState
interface only provides APIs specific to tweens that do not also apply to timelines.
Tweens can be created using the startTween()
method on the Tween behavior script interface.
Tween APIs
- stop()
- Stops playback and immediately ends the tween. The interface is released in this call and so it cannot be used any further after this call.
- instance
- A read-only property with a reference to the IWorldInstance the tween is running on.
- isDestroyOnComplete
- Set or get a boolean indicating whether the corresponding instance will be automatically destroyed once the tween finishes.
- value
- A read-only number providing the current value of a value tween.
- setEase(easeName)
- Set the ease function used for the tween by a string of its name. Refer to the Tween behavior script interface for a list of valid built-in ease names, or use the name of a custom ease.
Construct Animate Manual
Construct.net
2022-08-31
2024-04-24
You are here:
Search this manual:
This manual entry was last updated on 24 Apr, 2024 at 10:40