Join Todd Perkins for an in-depth discussion in this video Load particles via code, part of iOS Game Development: Swift 2.0 and SpriteKit.
- So we've looked at creating particle systems…in a couple of different ways.…But, what if we wanted to instantiate…a particle system through code?…So, here I've actually created a spark particle.…So I created the file.…And I tweaked it a little bit.…So, I changed the birth rate,…maximum number to 100.…So, birth rate's 2,000, the maximum is 100.…Now that's important.…If you have it at zero, it will go on forever.…This is going to occur one time.…So, what we're seeing here is actually…the particle system repeating.…
So, it's looping.…So, I've made some other tweaks here,…and you can scroll down and check…them out if you'd like.…But, I haven't really changed much.…The main thing is I've changed…the blend mode to alpha.…And I've also changed the particle texture…to my particle, which is just a white circle that's solid.…Also, if you find that you're not seeing…the particles running on your screen,…you can just close your Xcode project.…And then open it back up and you…should see the particles again.…Another change I've made to this file…
Author
Released
1/14/2016- 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
Duration
Views
Related Courses
-
Game Design Careers with Brenda Romero
with Brenda Romero54m 41s Beginner -
iOS 9 App Development: GamePlayKit
with Tammy Coron1h 31m Intermediate
-
Introduction
-
Welcome43s
-
Using the exercise files1m 28s
-
-
1. Introduction to SpriteKit
-
Create a SpriteKit project2m 30s
-
View the template code4m 36s
-
Add and modify sprites6m 3s
-
Modify sprites in code9m 6s
-
Create a custom scene5m 28s
-
Transition between scenes5m 13s
-
-
2. Add Physics
-
Work with gravity2m 15s
-
Use forces and impulses4m 24s
-
Detect collisions4m 30s
-
Use bitmasks3m 29s
-
Respond to collisions8m 32s
-
3. Work with Particle Effects
-
Apply particle effects4m 20s
-
Load particles via code6m 57s
-
-
4. Work with Actions
-
Use an action sequence4m 8s
-
5. Work with Audio
-
Add sound effects3m 17s
-
Play background music2m 48s
-
Preload sounds3m 46s
-
-
6. Additional Features
-
Use physics fields2m 33s
-
Create frame animations3m 30s
-
Use cameras3m 44s
-
Use lights3m 30s
-
-
Conclusion
-
Next steps50s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Load particles via code