Created
March 16, 2017 02:59
-
-
Save jjacobson93/74f04d6dda279407d0c7567e59bec531 to your computer and use it in GitHub Desktop.
Grouping SKActions
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 rotateAction = SKAction.rotate(byAngle: π, duration: 0.5) | |
let moveAndRotate = SKAction.group([moveAction, rotateAction]) | |
let player = SKSpriteNode(imageNamed: "player.png") | |
player.run(moveAndRotate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment