[20/03/2021] Adding Car Health and Destruction
- Daniel Henshaw
- Mar 19, 2021
- 1 min read
Updated: May 19, 2021
I created a health system for my game. I did this by detecting collisions between cars and objects around the scene such as other cars, trees, tyres and fences. When collisions are detected the script removes health depending on the mass of the object. Depending on the health different particles are added to the car. This is done by having disabled particles which are set to enabled causing them to play. If health is less than 0 then the player explodes and after a short wait time respawn on their last checkpoint. I also made it so that the player can only respawn three times.
Demo:
Trello:

Comments