Action sequences allow you to run actions in a given order. This tutorial shows how to setup action sequences.
- [Man] Action sequences allow you to run multiple actions…in a specified order.…So, we have an action right here,…where we create this moveBy action.…So, what we want to do is reverse the action…and run it after the original action,…and then finally, once it's all done,…remove the item from the screen.…So, let's go down…in between this item? .run line of code and moveAction,…and we're going to create the reversed action.…So,'ll call it reversedAction.…
This is going to be an SKAction.…And, then I'm going to set it equal to moveAction.reversed.…So, that creates a reversed version of the same action.…So, now we have our regular action, and our reversed action.…And, then finally, what we want to do, is loop this animation.…So, I'm going to create a new action,…and I'm going to call this the sequence.…And, this is going to be an SKAction.…
And, I'll set it equal to SKAction.sequence.…And, then we need to pass in an array of SKAction objects.…So, in square brackets, I'm going to pass in…the moveAction, and then, I'll pass in the reversedAction.…
- Creating a SpriteKit project
- Adding and modifying sprites
- Creating sprites in code
- Transitioning between scenes
- Working with children and parents
- Adding physics
- Detecting and responding to collisions
- Applying particle effects
- Creating actions
- Working with sound
- Adding cameras and lights
Skill Level Intermediate
Game Design Careers with Brenda Romerowith Brenda Romero54m 41s Beginner
Careers in the Game Industrywith Christian Bradley1h 19m Beginner
Building a Game App with the Android SDKwith David Gassner2h 6m Intermediate
1. Introduction to SpriteKit
2. Add Physics
3. Work with Particle Effects
4. Work with Actions
5. Work with Audio
6. Additional Features
Next steps1m 41s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.