永遠に動くアニメーションの繰り返し中にスプライトの不透明度を変更したい。
How can I solve this?
別のアクション ( your ) と一緒に実行したいので、同時に複数のアクションを実行できるアクションをCCRepeatForever
使用する必要があります。CCSpawn
id action1 = [CCEaseOut actionWithAction:[CCActionTween actionWithDuration:0.1 key:@"opacity" from:0 to:255]
id action2 = your movement action
id action3 = [CCSpawn actionOne:action1 two:action2];
id action4 = [CCRepeatForever actionWithAction:action3];