SKAction *ghostAnimationAction =
[SKAction animateWithTextures:ghostFrames timePerFrame:0.1];
SKAction *ghostDelayAction =
[SKAction animateWithTextures:@[[SKTexture textureWithImageNamed:@"Ghost_"]]
timePerFrame:1.0];
SKAction *ghostAnimationSequence =
[SKAction sequence:@[ghostAnimationAction, ghostDelayAction]];
SKAction *repeatGhostAnimationSequence =
[SKAction repeatActionForever:ghostAnimationSequence];
オブジェクトで構成されたフレームのアニメーション シーケンスがNSMutableArray
ありSKTexture
ます。そのシーケンスが再生されたら、すべてを繰り返す前に、静止フレームを 1 秒間フォールドしたいと思います。上記のコードは機能しますが、一定期間フレームを保持することを指定する唯一の方法はanimateWithTextures:timePerFrame:
、単一のテクスチャ配列を使用して提供することです。SKAction
欠落している期間、単一の画像を表示する別の方法はありますか。