Created
January 26, 2015 14:25
-
-
Save veeneck/691ab2e2a8eca3f6138d to your computer and use it in GitHub Desktop.
SKAction Timing Funciton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func timingFunc(time:Float) -> Float { | |
return 1.0 | |
} | |
let moveAction = SKAction.moveToX(500, duration: 0.2) | |
moveAction.timingFunction = timingFunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment