O'Reilly logo

iOS Game Development By Example by Samanyu Chopra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the particle effect

Sprite Kit provides properties and variables to customize particle effects as per their requirement in a game. Let's discuss these properties and variables:

  • var particleBirthRate: In this property, you define the number of particles created by the emitter every second. The default value of this is 0.0.
  • func advanceSimulationTime( sec:NSTimeInterval ): This method helps you advance the emitter particle simulation. It takes time in seconds as its parameter, which is the time required to simulate. Preferably, this method is used to preoccupy an emitter node with particles after its addition to scene.
  • var numParticlesToEmit: In this property, you define the number of particles the emitter has to emit. By default, its value ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required