Files
feuerwerk/todo-notes/done/merge-get-set-variable.md
T
rootandClaude Opus 5 e9fa592078 Add the Variable node and show the variable name in node titles
Get/Set variable nodes now title themselves "Get <name>" / "Set <name>", and
the new Variable node just "<name>"; the title is the same folded or open,
and a collapsed node shrinks to it. The redundant "Variable: <name>" row is
gone unless the variable was deleted ("<name>?" is the only hint then).

The Variable node sets its value when an exec flow arrives and exposes the
value at any time. Its output is read when a downstream node pulls it, not
frozen at the write, so count = count + 1 is one Variable node plus an Add.
Get variable keeps reading once per pulse: switching it would change the
behaviour of existing games.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 13:34:09 +02:00

521 B

Kann man einen quasi 2 in 1 node machen "Variable" - dieser soll Get/Set gleichzeichtig können

  • kommt ein exec flow rein, dann wird gesetzt (vom input port - wert oder edge)
  • get gibt es quasi immer, natürlich der neue wert falls er gesetzt wird

Umgesetzt: der Ausgang liest die Variable im Moment des Abrufs, nicht beim Schreiben. Get variable liest dagegen weiter einmal pro Puls — auf dieselbe Technik umstellen hiesse, bestehende Spiele im Verhalten zu aendern (Tetris liest das Brett deshalb zweimal).