我对此做了一些研究,但真的找不到任何东西,所以如果这是一个重复的问题,我道歉。但不管怎样,我已经用CocosBuilder制作了一个CCB文件,我想从时间线开始,例如,从一秒开始,而不是从头开始播放。有没有办法做到这一点?谢谢你们的帮助。
编辑:我希望这是在代码中完成。
发布于 2014-03-27 13:52:45
- You have to go to CCBAnimationManager and there you get "mNodeSequences".
- It is dictionary and you get difference properties there like "rotation position etc..." values there.
- Internally AnimationManager reads this value (These values are specified in your CCB) and puts in runAction queue.
- So you have to break it as you want.(Ex. 5 min timeline you have. But you want to start from 1 min then you have run first 1 min Actions without delay and for remaining you have properly calculate tween intervals.
这是一个很长的过程,需要计算。如果你不知道其他更简单的方法,试试这个。如果你知道,请让我们知道(张贴)。
https://stackoverflow.com/questions/22656351
复制相似问题