为了账号安全,请及时绑定邮箱和手机立即绑定

cocos2d-x armature 怎么获取最后的帧

cocos2d-x armature 怎么获取最后的帧

慕容3067478 2018-10-30 05:00:13
cocos2d-x armature 怎么获取最后的帧
查看完整描述

1 回答

?
慕运维8079593

TA贡献1876条经验 获得超5个赞

int currentAnimIndex = 0; //精灵当前播放的是第几帧for(int i = 0; i < 5; i++){ //5张图5帧 if(prite->displayedFrame() == anim->getFrames()->getObjectAtIndex(i)) { //这个i返回的只是一个索引,如果帧数是从1开始计算就要+1 currentAnimI

查看完整回答
反对 回复 2018-11-16
  • 1 回答
  • 0 关注
  • 795 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信