Join Todd Perkins for an in-depth discussion in this video Spawn physics objects from a scene file, part of iOS Game Development: Swift 2.0 and SpriteKit.
- So we've looked at making a cannon…that follows your cursor or your finger…as you click and drag, or tap and drag back and forth.…And we've looked at making a ball that bounces…but what if we wanted to make the cannon shoot the ball?…Now there are a whole bunch of problems…that come because of that.…So we could say that whenever we click…we just take this ball and we move it inside the cannon.…So that's one solution.…But if we want to be able to have multiple balls…on the screen we need to be able to spawn them.…And when we create a sprite…we can set a texture for the sprite…but then we also have to manually set the physics properties…So everytime we create we'll have to set the bounding circle…set it to dynamic, effected by gravity,…and the restitution, et cetera.…
But what if we got our ball just right…and we wanted to just make copies of it…and we wanted to create a reproducible element…that we could simply drop into our game.…So let's look at how that might work.…So I don't present this as the only solution…
- 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
iOS 9 App Development: GamePlayKitwith Tammy Coron1h 32m 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.