pixijs / animate-extension

Custom Platform Plugin for Adobe Animate CC (Formerly Adobe Flash CC) - to export animation for the PixiJS renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to access the ticker from animate?

trufo2 opened this issue · comments

I'm trying to animate a blur on an instance of an MC:

const blurFilter1 = new PIXI.filters.BlurFilter();
this.mario_01.filters = [blurFilter1];
let count = 0;
PIXI.ticker.add(() => {
count += 0.005;
const blurAmount = Math.cos(count);
blurFilter1.blur = 20 * (blurAmount);
});

But I don't know how to access the pixiAnimate ticker. Could someone point me in the right direction?

This would be a question about the runtime, not the extension, but Movieclips just animate using PixiJS's shared ticker: PIXI.Ticker.shared.

That works. Thanks.