Created
March 17, 2017 07:24
-
-
Save jjacobson93/79d877555bc6f9d6ebb39f96e7b465e7 to your computer and use it in GitHub Desktop.
Repeat SKAction
This file contains hidden or 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
let moveAction = SKAction.moveBy(x: 10, y: -15, duration: 0.8) | |
let player = SKSpriteNode(imageNamed: "player.png") | |
let moveFiveTimes = SKAction.repeat(moveAction, count: 5) | |
player.run(moveFiveTimes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment