pixijs / animate

PixiJS runtime library for content from Adobe Animate CC
https://pixijs.io/animate/
MIT License
205 stars 31 forks source link

can i use pixi-animate in pixijs ? #85

Open windreamlion opened 5 years ago

windreamlion commented 5 years ago

I have had a problem for a long time. Can I use pixi-animate to load files created by animate cc in pixijs? After all, animate cc creates animations very conveniently. thanks!

bigtimebuddy commented 5 years ago

Yes. You need to use the pixi-animate-extension, to export PixiJS content from Animate.

windreamlion commented 5 years ago

Is there a demo code for reference? thanks

ngcamu commented 5 years ago

Open the html page exported from Animate and you'll see the standard way to work with the assets.

var scene = new PIXI.animate.Scene(800, 600, { view: document.getElementById("stage"), backgroundColor: 0xffffff, antialias: true }); scene.load(lib.Main);

Or are you looking for information on using a pixi-animate Scene with other display objects in a pixi-js Application?