CCAnimationを使う
CCAnimation *danceAnime = [CCAnimation animation]; [danceAnime addSpriteFrameWithFilename:@"dance01.png"]; [danceAnime addSpriteFrameWithFilename:@"dance02.png"]; //画像1枚毎の表示時間 danceAnime.delayPerUnit = 0.1; //ループ回数(-1で無限) danceAnime.loops = 1; [dancerSprite runAction:[CCAnimate actionWithAnimation:danceAnime]];
0 件のコメント:
コメントを投稿