Join Todd Perkins for an in-depth discussion in this video Understanding parents and children, part of iOS Game Development with Swift 2.0 and SpriteKit.
- When we look at the SpriteKit template file,…there was some code that said, "Add child."…So I want to take some time right now…to talk about parents and children in SpriteKit.…Every element that we add to the screen in SpriteKit…needs to have a parent.…And the parent all the way back…in the ancestral tree is the scene.…So we have our GameScene class right here.…So if I select any of these elements on the screen…and I look in the Parent drop-down,…it will say the parent is SKScene_0…which refers to the GameScene class.…
So it's a child of the scene.…So in order to view an object,…it needs to be a child of some other object.…Now for what we've done so far,…that doesn't really matter…because everything has been a child of the main scene.…So if I click on the circular background right here,…that's a child of SKScene_0 and same for the cannon,…the child of SKScene_0.…Now the reason why you might want to change…the parent theme is because this whole cannon,…we might want to move that as a unit…and not as three individual parts.…
- 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
Programming iOS 9 and 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?
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.