Particles
The player ship's thrust is a perfect use for particles, creating a streaming flame from the engine. Add a Particles2D node to the Player scene and name it Exhaust. You might want to zoom in on the ship image while you're doing this part.
When first created, the Particles2D node has a warning: A material to process the particles is not assigned. Particles will not be emitted until you assign a Process Material in the Inspector. Two types of materials are possible: ShaderMaterial and ParticlesMaterial. ShaderMaterial allows you to write shader code in a GLSL-like language, while ParticlesMaterial is configured in the Inspector. Next to Particles Material, click the down-arrow and choose New ParticlesMaterial.
You'll see a line of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access