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.