An animation is a value a graph can pick, and playing a running one makes it win again (#97)

Play, Pause and Stop animation take the animation on a port instead of a
fixed setting, fed by the new Animation literal or a list item tagged
`$animation`. Playing an animation already running keeps its frame but
counts it as started last, so turning back to a walk that never stopped
shows that walk. The actor demo walks through one Play animation over
`ItemAt(walk, facing)` again and stops every animation to stand.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5 committed 2026-09-16 20:47:31 +02:00
1 parent 5af0a1c83a
commit 4ed2edd0f0
10 files changed
+158 -71

No files matched your search

+2
View File
@@ -33,6 +33,7 @@ import { Join } from './data/Join';
import { KeyIsDown } from './data/KeyIsDown';
import { Length } from './data/Length';
import {
AnimationLiteral,
BooleanLiteral,
ListLiteral,
NumberLiteral,
@@ -156,6 +157,7 @@ export const BUILT_IN_NODES: readonly NodeDef[] = [
StateMachineLiteral,
SoundLiteral,
SceneLiteral,
AnimationLiteral,
Add,
Subtract,
Multiply,