Wave Generator Node puts out a changing value that increases and decreases between the Start & End and Middle 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 | Enable or disable the node. Disabled Nodes cannot be executed |
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. See Tween Types for more |
Duration to / from Middle | 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 / Middle Value | Set the Start & End value to define where the cycle starts and ends from, and the Middle value to define the peak for the generated output. |
On Loop/End | Send signals to other Nodes at each finished back and forth cycle |
TweenIn/TweenOut Demo Game
Visual representation of each Tween
Here's a link to the example scene that shows how to implement and use the Wave Generator node: