clik-engine API
    Preparing search index...

    Class AnimationStateMachine

    Animation-specific state machine with cancel windows, priority levels, and per-edge transition types.

    Usage:

    const asm = new AnimationStateMachine(sprite);
    asm.addState('idle', { animKey: 'player_idle', loop: true, priority: 0 });
    asm.addState('attack', { animKey: 'player_attack', priority: 2, cancelAfterFrame: 4, next: 'idle' });
    asm.addTransition('idle', 'attack', { type: 'cut' });
    asm.start('idle');
    Index

    Constructors

    Methods