0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SwiftでSKActionTimingModeを設定する

Posted at
let moveAction:SKAction = SKAction.moveTo(samplePosition,duration:moveDuration)
moveAction.timingMode = SKActionTimingMode.EaseInEaseOut

timingModeを設定したいSKActionがあったら、上のように記述すればできます。

「samplePosition」と「moveDuration」は例として書いただけなので、自分の好きな値を書いてもらえれば大丈夫です。

・参考
https://developer.apple.com/Library/ios/documentation/SpriteKit/Reference/SKAction_Ref/index.html#//apple_ref/c/tdef/SKActionTimingFunction
https://github.com/Thinkful-Ed/Llamas-in-Pajamas-Assignment/blob/master/Llamas%20in%20Pajamas/Lion.swift

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?