0

I have Adobe Animate project exported to HTML5 which uses CreateJS as a backbone. All animations in AA (in terms of MovieClips) seem to be implemented with 30 FPS in mind.
So, when I have CreateJS ticker defined like this:

    createjs.Ticker.framerate = 30;
    createjs.Ticker.addEventListener( 'tick', stage )

everything plays as expected, though when I add createjs.Tween-based movements - those look very twitchy.
Tweenings become completely smooth when setting createjs.Ticker.timingMode = createjs.Ticker.RAF, but AA exported MovieClips animations, then, become sped up.

Tried this way with no change to createjs.Tween, nor AA MovieClips:

    createjs.Ticker.addEventListener(
        "tick",
        s => stage.update( s.delta ),
    )

Is there a way to separate programmatic tweenings from AA-exported MovieClip updates, so that tweenings will become smooth while MovieClip animations update as if it's still 30 FPS?

Slaus
  • 2,086
  • 4
  • 26
  • 41

0 Answers0