I’m now coming to a point where the level looks ok enough to test out and improve the scripts. I realised I had an issue with footsteps because it always assumed raycasting was happening, and when it didn’t it stopped gameplay. I wanted to see if objects were colliding with the level so I attached a light to a sphere and used that as my projectile. I also was able to change the projectile to the dynamite in game. Here is an example of that:
For scripting this is what’s needed next:
- Complete footsteps audio
- Improve Object collection script with inventory system. This will use object recall (instead of picking up objects in mid air).
- Update the GUI
- Object impact velocity
- Audio pitch randomisation (for footsteps, impacts etc)