pd4d10 / lottiefy

Render Lottie to any engine
https://lottiefy.js.org
MIT License
62 stars 2 forks source link

Lottie with cocos creator Javascript (ES5) #2

Open mannv opened 5 years ago

mannv commented 5 years ago

I'm very happy that you can integrate lottie into cocos2d-x

I am using Cocos creator to build my application and want to use lottie to do some effects for the application

I tried to get your code at project https://github.com/pd4d10/lottie-cocos2dx and integrated into my project but it does not work

Can you give me a hint or tutorial so I can integrate lottie into my project. Thank you very much

pd4d10 commented 5 years ago

Thanks for your report. Is there any error message when using lottie-cocos2dx?

In addition, it would be helpful for debugging if you could upload your JSON file exported by Bodymovin

mannv commented 5 years ago

Thank you for the reply.

lottie-cocos2dx use ES6, But my project is written with javascript code ES5, and it does not work.

This is the JSON file I downloaded from the home page https://www.lottiefiles.com/ favorite_star.json.zip

if you can let me guide the lottie take on the Cocos creator with the javascript code ES5

Thank you very much.

pd4d10 commented 5 years ago

The code published to NPM is already compiled to ES5

Seems the JSON file you use has shape animation, which is not supported currently. See roadmap. We need to do more work to implement this