Forum rules - please read before posting.

Footstep sound problem

edited May 2016 in Technical Q&A
Hi,

I added footstep sound to my player and cant understand why it dont working.

I created sound prefab
image

image

set audioclips
image

still not working

AC version 1.51f

Comments

  • I udate AC to version 1.51g. Now it is working.

    How to use new Footstep component?
  • The FootstepSounds component is intended to be more of an example script than anything, because it shows one possible way you can add footstep sounds.  As such, it is commented throughout, and you can read how it works by opening the script file.

    But basically, you add a new Sound child to your character, and add the component to the character's root.  Then assign however many footstep sounds you want in the AudioClip array, and assign the new Sound child component as the Sound To Play From field.

    To play the sounds, you then need to create Animation Events (a Unity feature) within your walk/run animations.  These events should call the FootstepSounds component's PlayFootstep function, which will play one of the AudioClips you've provided at random.
  • edited May 2016
    understood, thank you
  • If I may add my two cents, I'd recommend doing what the guy in this video did:



    Worked for me! ;)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.