0 Favourites

How do I control sound better?

  • Did a search, but didn't really find a solution to my problems.

    I am having two problems regarding sound in my game. When I start the layout I have music playing right from the start. Whenever something else happens with sound involved (me jumping), the music skips for the first sound. After that everything is fine. Any tips on how I can prevent this?

    Also, the way it is now I can just spam the jump button, and the sound will play eventhough the player is hanging in mid-air. Is there any way to prevent this?

    Thanks in advance!

  • If I understood your problem, when your char jumps and it plays a jump sound, the music stops. And when your char jumps, the jump sound plays until he land. Am I right?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Almost. The music stops playing the very first time I jump. After that everything works fine.

    And the jump sound does not play until he land. It is just that I can spam the jump button and make it so the sound plays while the player is in mid-air, which is kind of strange. Is there a way to check if the player is in the air, and prevent the sound from being played then?

    Sorry if I am a little unclear..

  • Then the jump sound plays no stop from you pressed jump button until char is in air but not falling?

  • No. not exactly. It plays only once if I just press up once, but I can spam the button in the air which makes the sound play everytime I press it. It's not really a big problem, but it would be nice to prevent the player from provoking this bug.

  • Ok, now I understood your situation.

    Is your music in the Music folder? And sounds in the Sound folder?

    About sound jump problem, try the conditions On jump or Trigger once while true.

  • Thanks! On true worked

    I fixed the sound skip problem as well. For some reason I I had set it to play both the music and the jump sound at an object (the background), so they probably interfered with one another or something.

    Thank you for the help!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,152
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,735
MPPlantOfficial's avatar
MPPlantOfficial
Unread hot topic
80 10,060
jonathanbencomo's avatar
jonathanbencomo