-
Notifications
You must be signed in to change notification settings - Fork 906
Update CCArmatureAnimation.js #1851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
更改了 play 方法里 不能播放一次的BUG,当 loop 为 false 时候 动画只能播放一帧,并不能完全播放完后停止,所以把 loop 判断里 loop 为假的时候 this._loopType = ccs.ANIMATION_TYPE_NO_LOOP; 改为 this._loopType = ccs.ANIMATION_TYPE_TO_LOOP_FRONT;
|
Hi bigflower, I don't think your modify codes are right. It runs once. I think its behavior is right. And if it applies your modify codes, the animation always runs in a loop. The loop parameter means: Best regards |
|
有的需求是完整运行一次动画后停止,this._armature.getAnimation().play("attack", 10, 0);这种形式的 貌似只是运行了一帧就停止了,所以才做了修改,修改后达到预期效果,你可以试试 js-tests 里 CocoStudioTest -> ArmatureTest -> ArmatureTest.js -> TestAnimationEvent 这个例子,改为 armature.getAnimation().play("attack", 10, 0); 这样后无法播放完毕,只播放一帧就停止掉了 |
|
提交一个书写问题! 目前COCOS2D-X.ORG上 Download v3.0alpha2 有一个书写问题。 uiWidget.js getChildByTag: function (tag) { |
|
Hi @wangjiebha The bug of uiWidget has been fixed at: #1852 Thanks for you feedback. |
|
Hi @bigflower I have tested TestAnimationEvent with I tried to use Sorry to reply late. |
|
这个armature.getAnimation().play("attack", 10, 0); 确实存在一定的问题。如果你在COCOSTUDIO编辑的动画。导入到程序,在没有开启LOOP的情况下.确实会只播放1-2帧就停止了动画。动画没有播放完整 |
|
Yes, We'll fix it soon. I'm sorry to reply late, because this issue is very complex to fix. Thanks for your comment. |
Issue #1851: Fixed a bug about Armature loop
|
Hi @bigflower This bug has been fixed at VisualSJ@3a5de72 Best regards. |

更改了 play 方法里 不能播放一次的BUG,当 loop 为 false 时候 动画只能播放一帧,并不能完全播放完后停止,所以把 loop 判断里 loop 为假的时候 this._loopType = ccs.ANIMATION_TYPE_NO_LOOP; 改为 this._loopType = ccs.ANIMATION_TYPE_TO_LOOP_FRONT;