107
edits
Line 23: | Line 23: | ||
''Coding part'' | ''Coding part'' | ||
[[Image:move_scene_code.png | [[Image:move_scene_code.png]] | ||
To change the scene, the box collider, which is attached with the cars, will be triggered when the player was hit by the car. Moreover the sound effect will be played promptly. After that the after life scene will be loaded. | To change the scene, the box collider, which is attached with the cars, will be triggered when the player was hit by the car. Moreover the sound effect will be played promptly. After that the after life scene will be loaded. | ||
Line 36: | Line 36: | ||
''Coding part'' | ''Coding part'' | ||
[[Image:particle_code.png | [[Image:particle_code.png]] | ||
To create particle system trigger, the box collider was used as a trigger. When the player is in the cube, the particle system event will be launched and a sound effect will be played to make the player aware that they enter into sacrifice area. However if the player is out of the box, the particle system event will be stopped. | To create particle system trigger, the box collider was used as a trigger. When the player is in the cube, the particle system event will be launched and a sound effect will be played to make the player aware that they enter into sacrifice area. However if the player is out of the box, the particle system event will be stopped. |
edits