true to enable the behavior, false to disable it
Return true if the behavior is activated
Tween an object angle.
Unique id to identify the tween
The target angle
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object HSL color, with the "to" color given using HSL (H: any number, S and L: 0-100).
Unique id to identify the tween
The target hue, or the same as the from color's hue if blank
The target saturation, or the same as the from color's saturation if blank
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object color.
Unique id to identify the tween
The target RGB color (format "128;200;255" with values between 0 and 255 for red, green and blue)
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween using HSL color mappings, rather than direct RGB line
Tween an object depth.
Unique id to identify the tween
The target depth
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object height.
Unique id to identify the tween
The target height
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object opacity.
Unique id to identify the tween
The target opacity
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object position.
Unique id to identify the tween
The target X position
The target Y position
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object X position.
Unique id to identify the tween
The target X position
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object Y position.
Unique id to identify the tween
The target Y position
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object Z position.
Unique id to identify the tween
The target Z position
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object scale.
Unique id to identify the tween
The target X-scale
The target Y-scale
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object X-scale.
Unique id to identify the tween
The target X-scale
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object Y-scale.
Unique id to identify the tween
The target Y-scale
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object width.
Unique id to identify the tween
The target width
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween a text object character size.
Unique id to identify the tween
The target character size
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Add an object variable tween.
Unique id to identify the tween
The object variable to store the tweened value
Start value
End value
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
Tween an object variable.
Unique id to identify the tween
The object variable to store the tweened value
End value
Type of easing
Duration in milliseconds
Destroy this object when the tween ends
This method is called each tick after events are done.
The instanceContainer owning the object
This method is called each tick before events are done.
The instanceContainer owning the object
Tween exists.
Unique id to identify the tween
The tween exists
Get the name of the behavior.
The behavior's name.
Get the name identifier of the behavior.
The behavior's name identifier.
Get tween progress.
Unique id to identify the tween
Progress of playing tween animation (between 0.0 and 1.0)
Tween has finished.
Unique id to identify the tween
Tween is playing.
Unique id to identify the tween
Reimplement this method to do extra work when the behavior is activated (after
it has been deactivated, see onDeActivate
).
Reimplement this to do extra work when the behavior is created (i.e: an
object using it was created), after the object is fully initialized (so
you can use this.owner
without risk).
Reimplement this method to do extra work when the behavior is deactivated.
This method is called when the owner of the behavior
is being removed from the scene and is about to be destroyed/reused later
or when the behavior is removed from an object (can happen in case of
hot-reloading only. Otherwise, behaviors are just de-activated,
not removed. See onDeActivate
).
This method is called when the owner of the behavior was hot reloaded, so its position, angle, size can have been changed outside of events.
Pause a tween.
Unique id to identify the tween
Remove a tween.
Unique id to identify the tween
Resume a tween.
Unique id to identify the tween
Called at each frame after events. Call doStepPostEvents.
Behaviors writers: Please do not redefine this method. Redefine doStepPreEvents instead.
The instanceContainer owning the object
Called at each frame before events. Call doStepPreEvents.
Behaviors writers: Please do not redefine this method. Redefine doStepPreEvents instead.
The instanceContainer owning the object
Stop a tween.
Unique id to identify the tween
Move to destination
Called when the behavior must be updated using the specified behaviorData. This is the case during hot-reload, and is only called if the behavior was modified.
true if the behavior was updated, false if it could not (i.e: hot-reload is not supported).
The instance container the behavior belongs to.
The data to initialize the behavior
The runtime object the behavior belongs to.
Generated using TypeDoc
De/Activate the behavior