The game itself currently works, but it could use some more polish. One of the things we do to increase the polish of the game is to make use of particle systems. Typically used for effects that are natural or organic such as fire, smoke, and sparks, particle systems create objects that are designed to be as low-cost as possible, called particles. Due to this, we can spawn many of the particles at once with a minimal performance cost. One of the easiest types of particle systems to create is a trail to follow our player, so let's add one of those now using the following steps:
- Select Player in the Hierarchy window, and then right-click and select Effects | Particle System.
This will make this system a child of the player, which will be good for what we are going to do. - From the Particle System component, change the Start Speed to 0 and the Simulation Space to World. Then, change the Start Color to something to make it easy to see, such as purple.
- Open up...