Join Todd Perkins for an in-depth discussion in this video Work with gravity, part of iOS Game Development: Swift 2.0 and SpriteKit.
- So we've looked at our physics simulation already,…and we can test it by clicking that Animate button.…Maybe though, it moves a little too slowly for you.…Or everything feels a little bit floaty,…like it weighs too little.…We can modify how that feels and how that looks…using the gravity properties.…We can adjust gravity by simply…clicking away from everything else…and now we're selecting our scene.…So you should see Scene in the…Attributes Inspector.…Under hear, you'll see the Gravity section.…
Note that it's not just gravity along the Y-axis.…There's also gravity along the X-axis as well.…So, let's say I wanted everything…to fall a little bit faster.…I could change gravity by dragging that slider.…So, I can make everything heavier or…appear heavier because of the gravity.…So, I'll click the Animate button,…and there it is.…So the gravity property gives us control of that.…Well, what if we wanted to add gravity…along the X-axis.…
What would that look like?…Add some gravity there,…hit the animate button.…Everything's kind of going to the bottom left.…
- 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.