clik-engine API
    Preparing search index...

    Class TimeEffects

    Time manipulation effects: hitstop, slow-motion, and gradual resume.

    Usage:

    const time = new TimeEffects(scene);
    time.hitstop(3); // freeze for 3 frames
    time.slowMo(0.3, 2000); // 30% speed for 2 seconds
    time.slowMo(0.3, 2000, 'gradual'); // gradual resume over 2s
    Index

    Constructors

    Accessors

    Methods

    • Slow-motion effect.

      Parameters

      • scale: number

        Time scale (0.1 = very slow, 0.5 = half speed)

      • duration: number

        How long the slow-mo lasts in real-time ms

      • resumeMode: "instant" | "gradual" = 'instant'

        'instant' = snap back, 'gradual' = smooth ramp to normal

      Returns void