Game Development Reference
In-Depth Information
1.
Open the Smoke particle in the Project view.
2.
Set the Splatter's Start Delay to 0.1 .
3.
Click Play, and test the new settings.
Now the Splatters are not hidden by the explosion. With so much going on now, you may want to
adjust the number and size of the particles in the Explosion particle system.
Trailing Particles
The last particle system you will look into is a means to make the slug leave a trail as he shoots
through the garden. Unity has a Trail Renderer component, but it leaves particles standing up to face
the camera. This time, the particles should remain where they were emitted, flat to the ground, until
they fade out. The slug moves very fast, so you will slow him down while you block in the slime trail.
1.
Drag the Slug prefab into the scene.
2.
Open the Animator view, and select the default state, Slug Run.
3.
In the Inspector, set the clip Speed to 0.1 .
4.
Create a new Particle System, and name it SlugSlime .
5.
Drag it onto the parent Slug in the Hierarchy view, and set its Rotations to 0 ,
180 , 0 .
6.
Position it a short way in from the tail end of the slug and up off of the ground
slightly.
7.
In the Renderer module, set the Render Mode to Horizontal Billboard to keep
the particles flat to the ground.
8.
Set the Start Lifetime to 4 , the Start Speed to 0 , and the Start Size to 0.5 .
9.
Set the Shape to Box.
10.
Set its X and Y to 0 and its Z to 0.7 .
11.
In “Color over Time,” Set the Alpha to 145 at the first two markers and 0 at
100%.
12.
Set the color to go from an electric blue to a strong green (Figure 8-37 ).
 
Search WWH ::




Custom Search