Skip to content

Instantly share code, notes, and snippets.

@jjacobson93
Created March 16, 2017 02:50
Show Gist options
  • Save jjacobson93/cb6fb813adf1e57350650095e98a4308 to your computer and use it in GitHub Desktop.
Save jjacobson93/cb6fb813adf1e57350650095e98a4308 to your computer and use it in GitHub Desktop.
Running an SKAction
let moveAction = SKAction.moveBy(x: 10, y: -15, duration: 0.8)
let player = SKSpriteNode(imageNamed: "player.png")
player.run(moveAction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment