SKEmitterNode in SpriteKit Scene sks
Particle effects on iOS require SpriteKit.
- Add the file MyScene.sks to your project.
- Drag a SpriteKit view into the storyboard.
- Drag both emitters into
MyScene.sks
. - Set the emitter properties.
- Drag the desired actions onto each emitter.
My previous understanding was
1 | let node = SKEmitterNode(fileNamed: "Fire") |
To my surprise, SpriteKit can have a similar development experience like using Storyboard.
I surrendered to iOS Dev mainly because of Storyboard when I saw Paul Hegarty ctrl dragging buttons in his class to code.
Awesome!
Also, I see a lot of the UIDynamic stuff that I used to set up through code.
Glad to have this brief exploration.
Translated by gpt-3.5-turbo