Sound is stacking up issue!

0 favourites
  • 5 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • Hi everyone,

    I’m making a shooting game, and I’m using touch controls for both aiming the crosshair and shooting.

    The event setup is shown in the image below.

    The problem is that when I touch the screen, the bullet spawns correctly, but the sound doesn’t play. Then, when I release the touch, all the stacked-up sounds play at once, very loudly.

    How can I prevent this?

  • You probably don't want to spawn a bullet every tick, instead on the left conditions add an 'every X seconds' condition so you can create a firing rate.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You probably don't want to spawn a bullet every tick, instead on the left conditions add an 'every X seconds' condition so you can create a firing rate.

    Thanks for reply.

    I tried your suggestion, but the result is still same.

    I use same event for mouse (on a mouse button down), it's working fine.

  • > You probably don't want to spawn a bullet every tick, instead on the left conditions add an 'every X seconds' condition so you can create a firing rate.

    Thanks for reply.

    I tried your suggestion, but the result is still same.

    I use same event for mouse (on a mouse button down), it's working fine.

    That only happens the first time I hold and swipe the touch. Once I release and touch to shoot again, it works fine.

  • > > You probably don't want to spawn a bullet every tick, instead on the left conditions add an 'every X seconds' condition so you can create a firing rate.

    >

    > Thanks for reply.

    > I tried your suggestion, but the result is still same.

    > I use same event for mouse (on a mouse button down), it's working fine.

    That only happens the first time I hold and swipe the touch. Once I release and touch to shoot again, it works fine.

    I think the problem is with the browser. It's not allowing the audio to play unless there is a tap. If I press and hold, the browser doesn’t allow the audio until I release the touch.

    Is there any way to fix this?

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