Friday, May 12, 2017

Day 45: Audio-only Game: Day 20

I found a sound file with literally every bow/crossbow/arrow sound from TES 5: Skyrim. All I needed to do was select one part of the file and click "Export selected". I chose to export them as a .wav file.



So now that I have crossbow sound effects, I can add them to my game. I simply imported them as assets, and they're ready to use.


In my Combat script, I added more audioclip 'variables', and assigned the appropriate sound to each.



I tested my script, just to make sure it still works, and it seems there's a problem. The raycasting and equipping mechanic isn't working. NONE of it is working, really. So now I have to go through the entire script to find what's wrong with it.

I've found a fix, but I just don't understand why it stopped working. In the void start function, I added a few lines that sets two of the booleans, and one integer. Apparently, since they weren't set before, the script couldn't use them since there were no values assigned.


Now that I've gotten that sorted out, I can continue with the sound...next class.

No comments:

Post a Comment