Game Development Reference
In-Depth Information
As of now, both the
FireParticle
and
SmokeParticle
files are ready to be added
to the game, but we should know about some classes used to add these files as a node to
some node or scene. The node class to be used is
SKEmitterNode
.
A
SKEmitterNode
is a subclass of
SKNode
that automatically creates small particles
as sprites and renders them on the screen. These emitter nodes can be used to create
smoke, fire sparks, rain, and many other particle effects.
For instance, an object of
SKEmitterNode
, either we can use an sks particle file with
properties set from the particle editor or directly create an object of the
SKEmitter-