Join Todd Perkins for an in-depth discussion in this video Use an action sequence, part of iOS Game Development: Swift 2.0 and SpriteKit.
- So, not only can we run an action…and then run something else after,…we can also run multiple actions in a sequence.…And, of course, you can do this in a scene…or in your code.…So, I'm working in my SpriteKit scene here…and I have this bucket at the bottom.…And what I want to do is have it move…to the right all the way to the edge…and then back to the left.…So, if we look right here and I select it,…I can see its position is 120, 36.…
So, I want to move it right over to here,…right about 960 and keep that Y at 36.…So, I need to move it to the right 840 pixels and then back.…So, I'm going to change back to 120 and 36,…and to do that, I'm going to use a Move action.…So, under filter, I'm going to search for the word "Move."…Now, there's Move and MoveTo.…Move specifies a certain amount that it's going to move.…Move to the right 840 pixels, for example.…
MoveTo says move to a given coordinate.…Now, both of these have their own uses…and for this particular use, you may think,…OK, we know exactly the location we want to move,…
- Creating a new SpriteKit project
- Adding and modifying sprites
- Transitioning between scenes
- Removing child sprites from parents
- Working with gravity, forces, and impulses
- Detecting collisions
- Applying particle effects
- Creating actions and action sequences
- Working with audio
- Creating frame animations
- Using cameras and lights
Skill Level Intermediate
Game Design Careers with Brenda Romerowith Brenda Romero54m 41s Beginner
iOS 9 App Development: GamePlayKitwith Tammy Coron1h 31m Intermediate
1. Introduction to SpriteKit
2. Add Physics
3. Work with Particle Effects
4. Work with Actions
Use an action sequence4m 8s
5. Work with Audio
6. Additional Features
- 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.