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
- 1 回答
- 0 關注
- 925 瀏覽
添加回答
舉報
0/150
提交
取消