Wave Generator node puts out a changing value that increases and decreases between the Start and End values. The output follows a tween in and tween out pattern on each frame. Can be used to create a back and forth movement for other components, like Mover or Force.
Stop | Stops the Wave Generator when it is playing & resets it to the start value |
Play | Starts the Wave Generator |
↳ On Start | Start the Wave Generator when the game loads |
Pause | Pauses the Wave Generator leaving it at the current value. Executing Play after a pause will start the Wave Generator at the value it was at when it paused. |
Restart | Restart the Wave Generator from the beginning regardless of what state it is currently in |
Enabled | Determines if the Node is active . |
Loop | Determines if the Node will keep executing infinitely or if it will stop after the first cycle. |
Direction: Forward | Direction for the tween settings. Disable for inverted tween! |
Tween In / Out | When the Tween setting is Linear, the Wave Generator output value changes at even intervals. Change these settings for example to create a smooth start or end. Tween In affects the output when it shifts from Start to End, and Tween Out affects the output when it shifts back from End to Start. |
Duration In / Out | Duration of one Wave Generator cycle in seconds. Tip: To make a one way value change set the out duration to zero |
Start at Time | Offsets the start value by this value in seconds |
Value Output | Outputs the values to other Nodes |
Start / End Value | Set the Start and End values to define the minimum and maximum values for the generated output. |
On Loop/End | Send signals to other Nodes at each finished back and forth cycle |
Executing Components based on Time or Collision
Covers using Collision Trigger & Timer to execute the same action, also includes Wave Generator, Transform & Text components
TweenIn/TweenOut
Visual representation of each Tween
Here's a link to the example scene that shows how to implement and use the Wave Generator node: