github代码:
https://github.com/cocos-creator/engine/compare/master...yafacex:master
因为项目比较重度的使用spine动画。所以魔改了一个关键帧控制spine播动画的方案。
这里通过对animPlay和animLoop两个属性的k帧,实现了男孩 先循环播放“run”,并移动到cocos下方,再播放一次“jump”,跳上去,再循环播放“idle”待机。
思路就是让timeline系统支持对string和boolean的lerp!通过的新加的属性animPlay和animLoop对原本的 Animation 和 Anim Loop属性k关键帧(不影响原来两个属性的逻辑),详见代码!
最后!安利下自己的插件哈,欢迎捧场!
https://yafacex.github.io/CocosCreatorPluginAllInOne/场景闪电编/
https://yafacex.github.io/CocosCreatorPluginAllInOne/svn资源同步/
https://yafacex.github.io/CocosCreatorPluginAllInOne/svn_git内嵌插件/