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 ​
| Parameter | Type | Default value |
|---|---|---|
name | string | 'anim-state' |