Search Unity

[SOLVED] Certain audio NOT playing after I build game

Discussion in 'Audio & Video' started by pantzmaster2, Jan 25, 2015.

  1. pantzmaster2

    pantzmaster2

    Joined:
    Aug 22, 2013
    Posts:
    7
    Hi all, not sure if this is the right sub-forum.

    Having some trouble with a certain script/audio event. When I collide with a certain object with a collision box, an audio on the same object sound plays/loops for a variable amount of seconds that I specify (audio of a foot step to be specific).

    This works great when I "test" it from within unity, works fully as intended. But as soon as I build the game (in exe or for browsers) and I hit the collider, the foot step sound effect only plays ONCE and doesn't loop (and I do have loop ticked in the audio component of the object).

    How would I go about fixing this issue? Thanks!

    Edit: It seems that if I hit the collider and I stand still or keep walking forward, the audio doesn't loop. But if I walk backwards/back track then I can hear the audio! What's going on here?


    EDIT: SOLVED

    For some reason after building, some mp3's don't loop correctly. I changed the format to .wav and it works now!
     
    Last edited: Jan 25, 2015