开源一个cocos creator关键帧控制spine动画的解决方案!

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内嵌插件/

7赞

战术插眼 mark

mark mark mark

战术插眼 mark

mark mark mark

:face_with_monocle:

maker

MARK.

收藏以后肯定用得到谢谢大佬分享

https://github.com/yafacex/engine/commit/2e6b7afb9b2f6f63757bc3b109b6c1bfe3aeeaec
链接失效,点击这里

大佬流啤。顶一下

66666666666666战术插眼 mark

打不开啊。大佬

当你destroy的时候,会神奇的发现,gpu mem。不会被gc掉。。。