How do I fix this audio bug?

0 favourites
  • 4 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • This is horseshxt

  • Horse plop it may be, but buddy, you're gonna have to elaborate. What exactly is the problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hopefully I can explain this right!

    So, every music track in my game loops. However, some tracks have two parts to them, "Track1_start" and "Track1_loop." Those tracks work like this: On function play music: (then two subevents) if music_loop (global variable) equals "y", then play "Track1_start" NOT looping. Then on "Track1_start" end, play "Track1_loop" LOOPING. But if music_loop equals "n", then just play "Track1" LOOPING.

    Then, I have it so that when the player goes on collision with a layout teleporter, then it stops all audio. Once a layout starts, it repeats the play music function.

    This bug I showed seems to only show up AFTER a track's start file has ended and its loop begins. Any time before that it works fine. I should probably upload a capx showing it in action, but, maaan...I'm just so frustrated with this already.

  • All sounds like it should work in theory. If you could post a capx, that would make things easier.

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