There is no code to present since we're using Xcode to define the value for numParticlesToEmit
for a SKEmitterNode.
Specifically, we use the Maximum
property next to the Birthrate
property for the Emitter
section.
The Birthrate
property is set to 25.
If we set Maximum
to 0, particles appear as expected.
However, if we use 50, the particles do not appear. The particles appear inside of Xcode, so the values for the SKEmitterNode seem valid. The particles simply do not appear when running the app.
All we do in code is add the SKEmitterNode to the scene. Here's the code that adds the node to the scene:
self.addChild(fireworksEmitter)
Nothing else changes besides the Maximum
property.
Suggestions?