Hi, does any one know where I'v gone wrong here. Iv got is so when I press W, A or S my audio plays and it doesn't matter if I press two at the same time it still plays the audio. The only problem I have now is the audio Loops too fast is there any way of stopping this?
asked Dec 04, 2010 at 02:39 PM
Check out the FPS tutorial for a walk through... If anyone else can go through your script and actually see what to do, then I'd wait for that. But until then, see what you can see on your own...
Check the FPSPlayer script, they use an array of walking sounds to vary it up.
And it is called during the awake function... See if that helps.
Link to the tutorial: http://unity3d.com/support/resources/tutorials/fpstutorial.html
All the best!
answered Dec 05, 2010 at 02:58 AM
i would think if you put in a scheduled timer, like the yield WaitForSeconds(audioStepLength); that would be what you are looking for and just mess around with the time till you got it where you want it.
I'm new to Unity and haven't got into coding anything yet, but i'm sure you can set a timer to wait to begin the loop again.
answered May 08, 2011 at 07:32 AM