Bullet sound is getting messy.

0 favourites
  • 7 posts
From the Asset Store
An exploration and Spring Cleaning! Find and return items to their proper place.
  • Hellooo once again, bullet sound issues...

    So I can finally play my background music which is nice.

    But when I try to add the shooting effect, I screw up something.

    By my logic I added the sound effect to the left click sound.

    So when you click, the "gunshot 1" plays: "mouse on left button clicked -> audio plays "Gunshot 1" not looping db 0 etc...

    Actually it happens. But the effect repeats itself for some reason..

    So after some shooting you will hear a bunch of effects and it's super annoying.

    Any ideas, what went wrong?

  • use trigger once or put it in a trigger.

    also if it is a long sample you might want to stop the sound before playing it again to stop overlapping and phase effects.

  • Uhumm. I'm not really good in this yet, can you tell me please how to make the trigger thing?

  • so you mean it repeat non stop as soon as you click ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • use trigger once or put it in a trigger.

    also if it is a long sample you might want to stop the sound before playing it again to stop overlapping and phase effects.

    this is the awnser i was also going to give

  • Uhumm. I'm not really good in this yet, can you tell me please how to make the trigger thing?

    You need to have a play with Contrust for a bit more to understand.

    There are different types of events.

    One type of event is a trigger event.

    This will fire once when the trigger thing happens.

    In your case the on mouse click is a trigger event.

    This should only play your sound once when you click

    But the sound will always play to the end once started

    If the sound is a long sound or is a short sound with a long reverb

    when you click lots of times you will have lots of overlapping versions of the sound

    this will give you phase, distortion, and gain issues.

    To fix, in this case, your event should be

    On mouse click

    Stop Sound "my sound"

    play sound "my sound"

    this will stop the sound if it is playing before playing it again.

    so there is only ever one of the sound playing at a time.

  • Woah, thanks everybody for the help<3

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