How do I add footstep sounds?

0 favourites
  • 7 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • This problem is giving me a freaking headache, so first of all I've got the code part down right, but Construct 2 messes up the audio and it

    sounds like a fart. I am sorry for the politically incorrect-ness but there is no other way to describe the sound. Here have a look for yourselves:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, ok this will get a little complicated because there are a few issues at play here.

    The first problem is the pants. Your events state that the pants animation will play from the beginning every single frame your character is moving. So your pants animation never leaves the first frame. The thing that I find works well for triggering animations is to make them actions to key presses and releases. So "on Key press D - play animation" for example.

    The sound issue is the same as the pants. A new sound will play for every tick that you hold down the D button. That means that the sound is just piling up because you'll have hundreds of them playing all at once.

    You could try removing everything from the audio event and just make it "Pants - Animation Frame = (whatever frame you want the sound to play) - play sound".

    I hope that's clear enough.

  • Well, ok this will get a little complicated because there are a few issues at play here.

    The first problem is the pants. Your events state that the pants animation will play from the beginning every single frame your character is moving. So your pants animation never leaves the first frame. The thing that I find works well for triggering animations is to make them actions to key presses and releases. So "on Key press D - play animation" for example.

    The sound issue is the same as the pants. A new sound will play for every tick that you hold down the D button. That means that the sound is just piling up because you'll have hundreds of them playing all at once.

    You could try removing everything from the audio event and just make it "Pants - Animation Frame = (whatever frame you want the sound to play) - play sound".

    I hope that's clear enough.

    Thank you for replying and helping. Your solution made my walking animation better and more convinient for editing and functionality in the future but the audio remedy did not improve my situation .

    It still sound like a *fart* or multiple audio files playing at once. Here is the updated code:

  • Can you confirm that those are not distorted:

    https://

    drive.google.com/open?id=0B1SSuCVV8v74U1BUT3NVenhvNE0

    If they are not distorted in this capX, you do not have an additonal problem. You are just calling the play actions more times then you expect. Look my cap how i solved that.

    If the animation speed is slower then the actual Frames/second. An actual frame will be showed in more then one tick. Therfor: youre condition is true for several ticks in a row.

    Lets say the animation runs at 25 frames/second. & The game runs at 50 frames/second. Then each frame will be showed 2 ticks. And your conditions is true for 2 ticks. & then it farts, eh.

  • Hey, I had this same problem. It's a really easy fix, you just need to add "Trigger once" to the conditions

    (May need to remove the "D is down" condition, tbh it'll probably work just fine without that anyway)

  • The way I've done my walking sounds is to have short one-shot samples rather than a loop and I trigger them once under certain conditions (eg player is on ground, player is moving, frame 25 is playing), that way I can make sure that my sounds exactly match when my character's foot touches the ground. It also allows for more flexibility eg I have a pool of similar footsteps and it will choose a random sample and volume each time, so that it doesn't sound too repetetive.

  • Thank you all so much for helping me with this problem, Thank you especially MikeHive because you have given me a solution to the problem.

    This community is very friendly and helpful

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)