Motion
Get Motion

ReferenceScript nodesUtilities › Flow Control

Latch

Remembers true or false: set turns it on, reset off; then goes on after either.

Inputs

PinTypeStarts atNotes
Setsetwhat happens next––
Resetresetwhat happens next––

Outputs

PinType
thenwhat happens next
Is Setonbool

The code it becomes

The graph below written as a script would write it.

let q2 = false;let s2_on = false;// On Scene Startq2 = true;s2_on = q2;scene.log(s2_on);

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.