I’m new to this forum and also quite new to unity + programming script.
I’m fumbling my way though making a first person player game and need help or direction with my current code. I want to be able to play the audio when I move the right, down, left keys. Currently it works when I move up on the directional keys.
Could anyone help me understand what I need to include within my script to get that working also?
I would be very grateful and hope someone can help me move forward with this (pardon the pun)
Ooops, when I copied your code, I didn’t see that there was a space missing and of course it shouldn’t be a bool, but a var since your code was UnityScript. I’ve edited the code above and it should work now.
You’ve helped me out massively PGJ… It works when I use any of the directional keys, but for some reason the audio clip when auditioned sounds like it a glitchy / quick repeated version of the audio clip that I have (Im not going to trouble you any further with that side issue)
Thank you very much for your help and for being so generous with your time!!