clik-engine API
    Preparing search index...

    Class AnimationEventSystem

    System for triggering gameplay events on specific animation frames. Useful for: attack hitbox timing, footstep sounds, VFX spawning.

    Index

    Constructors

    Methods

    • Register an event on a specific animation frame

      Parameters

      • animKey: string
      • frame: number
      • callback: () => void
      • once: boolean = false

      Returns this

    • Common pattern: screen shake on frame

      Parameters

      • animKey: string
      • frame: number
      • duration: number = 100
      • intensity: number = 0.005

      Returns this