Skip to content

1681-engine / index / animStateSystem

Function: animStateSystem() ​

ts
function animStateSystem(name?): System;

Defined in: src/anim/animStateSystem.ts:12

Updates every AnimStateMachine each frame and shows its frame on the entity's sprite (only when it changed). Add it after the systems that set the machines' parameters, so a change shows the same frame.

Parameters ​

ParameterTypeDefault value
namestring'anim-state'

Returns ​

System

Released under the MIT License.