- Home /
footstep sound affect in the air
so in my 2d platformer whenever my running animation plays and I'm pressing the movement controls, the footstep sound will play which is good. But I don't want it to play when I'm not touching the ground, or in the air.
Use your ground check (im assu$$anonymous$$g you already have one). Then, depending on whether the player is moving and the player is grounded, play a footstep sound every interval.
Answer by i_likefps · Aug 04, 2021 at 02:04 AM
@DanielDeveloper2009, you can tag all things you want to be ground or anything that is walkable and add a collider to the feet of your player then make it so that when your feet collider collides with the "ground" objects, it plays the walk sound.
Your answer
Follow this Question
Related Questions
3D Audio Source plays choppy/poping in web player (Video) 1 Answer
Logarithmic Rolloff Sounds Plays After Max Distance 0 Answers
multiple sounds, sound....sucky 0 Answers
How to play two sounds at once on same object 2 Answers
Sound stutters and stops when coming back from background (iOS 7) 1 Answer