Repeater Node: Difference between revisions
Tayfunwiki (talk | contribs) No edit summary |
Tayfunwiki (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
= ๐ Repeater Node = | |||
[[File:Repeater Node.png|thumb|Repeater Node]] | [[File:Repeater Node.png|thumb|Repeater Node]] | ||
< | The '''Repeater''' node repeats the execution of the nodes connected to its output. | ||
---- | |||
ย | |||
== ๐ง What it does == | |||
When triggered, it runs all nodes connected to its output '''in sequence''', and '''repeats the process'''. | |||
ย | |||
If a repeat count is set (e.g., <code>3</code>), it will run the connected flow '''3 times total'''. | |||
ย | |||
If set to <code>-1</code>, it will '''repeat indefinitely'''. | |||
---- | |||
ย | |||
== ๐ Behavior Detail == | |||
ย | |||
* The repeater '''waits''' until the current sequence of connected nodes completes. | |||
* Only after all connected nodes finish execution does it trigger again. | |||
* This prevents infinite overlapping or premature re-execution. | |||
ย | |||
---- | |||
ย | |||
== ๐ Use Case == | |||
Used for polling input, repeating animation triggers, AI decision refreshes, or looping systems. | |||
---- | |||
ย | |||
== โ ๏ธ Notes == | |||
ย | |||
* Can be safely paused with <code>Pause</code> and continued with <code>Resume</code>. | |||
* Compatible with key handlers or other condition-checking nodes. | |||
ย | |||
---- | |||
ย | |||
== ๐ท Example == | |||
---- | |||
ย | |||
== ๐ Related Nodes == | |||
ย | |||
* <code>Pause</code> | |||
* <code>Resume</code> | |||
* <code>Key Handler</code> | |||
ย | |||
----Use when you want to '''loop a behavior''' without risking call stack overflows or unexpected recursions. |
Revision as of 12:18, 29 May 2025
๐ Repeater Node
The Repeater node repeats the execution of the nodes connected to its output.
๐ง What it does
When triggered, it runs all nodes connected to its output in sequence, and repeats the process.
If a repeat count is set (e.g., 3
), it will run the connected flow 3 times total.
If set to -1
, it will repeat indefinitely.
๐ Behavior Detail
- The repeater waits until the current sequence of connected nodes completes.
- Only after all connected nodes finish execution does it trigger again.
- This prevents infinite overlapping or premature re-execution.
๐ Use Case
Used for polling input, repeating animation triggers, AI decision refreshes, or looping systems.
โ ๏ธ Notes
- Can be safely paused with
Pause
and continued withResume
. - Compatible with key handlers or other condition-checking nodes.
๐ท Example
๐ Related Nodes
Pause
Resume
Key Handler
Use when you want to loop a behavior without risking call stack overflows or unexpected recursions.