ProtoFlux:Tween Value: Difference between revisions

From Resonite Wiki
m fix types
Sudo-Generic -> Pseudo-generic
 
Line 27: Line 27:
Tells the node to start tweening Target ([[Type:IField`1|Numeric or Enum IField`1]]).
Tells the node to start tweening Target ([[Type:IField`1|Numeric or Enum IField`1]]).


=== To (Sudo-Generic (Any Numeric or Enum value)) ===
=== To (Pseudo-generic (Any Numeric or Enum value)) ===


The value to tween towards over Duration ([[Type:Float|float]])
The value to tween towards over Duration ([[Type:Float|float]])
Line 33: Line 33:
Examples: [[Type:Key|Key Enum]], [[Type:Float|Float]], [[Type:Int|Int]], etc
Examples: [[Type:Key|Key Enum]], [[Type:Float|Float]], [[Type:Int|Int]], etc


=== From (Sudo-Generic (Any Numeric or Enum value)) ===
=== From (Pseudo-generic (Any Numeric or Enum value)) ===


The value to tween away from over Duration ([[Type:Float|float]])
The value to tween away from over Duration ([[Type:Float|float]])

Latest revision as of 18:48, 6 June 2024

Tween
*
OnStarted
To
OnDone
From
Duration
Curve
ProportionalDuration
Target
Actions

Tween Value is a node that allows you to change a Target (Numeric or Enum IField`1) over a Duration (float) from a starting point to an ending point. The different curve presets determine the interpolation used, and when applicable will smoothly change using non whole numbers.

Inputs

* (AsyncCall)

Tells the node to start tweening Target (Numeric or Enum IField`1).

To (Pseudo-generic (Any Numeric or Enum value))

The value to tween towards over Duration (float)

Examples: Key Enum, Float, Int, etc

From (Pseudo-generic (Any Numeric or Enum value))

The value to tween away from over Duration (float)

Examples: Key Enum, Float, Int, etc

Duration (float)

The duration in seconds that the value should tween for.

Curve (CurvePreset)

The interpolation type to use while tweening.

ProportionalDuration (Boolean)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


TODO: What does this do?

Target (Numeric or Enum IField`1)

The value this node should Tween.

Outputs

OnStarted (SyncResumption (Async))

sends an Async Impulse once the node starts tweening the Target (Numeric or Enum IField`1).

OnDone (Continuation)

Sends an Impulse once the node is done tweening Target (Numeric or Enum IField`1).

Examples