I'm implementing app for kids activities and I want to add celebration animation such a fireworks:
any of you knows this be implemented using Sprite Kit particles or if is another option please let me know.
I'll really appreciate your help.
This can easily be done using the Particle Emitter Editor, which I advise you to read about here.
Here's my set up to get a similar effect:
right click project -> new file - > SpriteKit Particle File
Next select Particle Template -> Spark
To load this file use this (objective-c):
SKEmitterNode *emitter = [NSKeyedUnarchiver unarchiveObjectWithFile:[[NSBundle mainBundle] pathForResource:@"MyParticle" ofType:@"sks"]];
Now to do complex things like remove from sky, you'll have to change the life time of the emitter. Again read the Apple docs.
For those who keep coming back to this question (and then down voted it because I didn't show you what my side bar configurations looked like) here's an example of what could be your firework set up.
Here's an example of what it looks like in action (with the above config):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With