0
私は男を左に移動させようとしていて、右に回り、次に移動します。私はSKActionシーケンスを使用しているSpritekitでこれを行う方法を知っています。しかし、私は実際にゲームではなくアプリでやっているのが苦労しています。私が今持っているのは、その男が同時に動いて回転することになるでしょう:spritekitゲームのようなアプリでアクションシーケンスを作成するには?
UIView.animateWithDuration(5.0, delay: 0.0, options: [ .Repeat, .Autoreverse, .CurveEaseInOut], animations: {
self.guy.center.x -= 130
}, completion: nil)
//
UIView.animateWithDuration(5.0, delay: 5.0, options: [ .CurveEaseInOut, .Repeat, .Autoreverse ], animations: {
self.guy.transform = CGAffineTransformMakeScale(-1, 1)
}, completion:nil)
ありがとう!