|
I need to play a sound while an elevator is moving between floors. The elevators is activated by a if condition if(elevatorheight < or > floorHeight). The sound is playing but is not looping. It seems that the sound is being played a lot of times. What is the problem?
(comments are locked)
|
|
check the loop box in the audio source.
(comments are locked)
|
|
You need to add another variable that tracks if you already made the audio Play(), and create another if statement. Otherwise, the clip starts playing again every frame.
(comments are locked)
|

Do you have script or something to start playing the sound? Just include the snippet of your code when you are dealing with the Audio.. it will much easier to solve your issue..
If it's playing a over and over but not sounding like it's looping it's probably your audio clip.