[NOT SOLVED] Audio Problems

0 favourites
  • 11 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hey all,

    It's the Way of the Sax guy again! I'm having trouble getting sound effects timescale and also layout music to work correctly. I've read all the forum threads and manual entries on the subject, but they either don't explain enough, or the problem is just overlooked and an alternate solution is proposed.

    First problem...

    When I hit pause in the middle of a fairly lengthy sound effect (as in the truckapproach in layout 2), it would keep playing. What I have done temporarily is to tag all sfx as "sfx" and tell my pause function to Audio: stop "sfx". When I do this, it stops on pause. However, when I unpause, the sound does not return. Music pauses and unpauses correctly. This is like an old NES game where the same problem occurs.

    Second problem...

    I'm starting to implement a title screen that plays the main theme. When I click the button to start, I can get the main theme music to stop, but I can't for the life of me get the Layout 1 music to play when it's supposed to. If I tell the Main Theme to "stop" on button click, then nothing plays the rest of the comic. If I set it to "muted" on button click, Layout 1 music comes in either late or not at all.

    I need music to begin on the start of each layout everytime, and so far this is pretty inconvenient. The only way I know of to fix it is to put all my music in the sounds folder and have the game load everything everytime. Yuck.




  • come on...anyone?

  • Audio manipulation, even simple stuff like this, will give you a world of pain in HTML5 at the moment.

    Are you prepared to abandon IE support?

    In regards to 2, I'm guessing you are not using 'dt' in your expressions. Take a look at this tutorial:


  • ok, figured out problem 2. Thanks Sqiddster.

    Problem 1 still stands.

  • I set up a pretty decent pause. I think I changed the speed of the music to 0 when paused, and back to 1 when unpaused. I don't use stop unless I want it to stop forever.

  • This is what I have already tried. Music pauses and unpauses perfectly. It is files in the sounds folder that do not pause.

    Is there anyway to apply a "dt" expression to sound playback?

  • problem persists...

    Is this a bug or limitation with Construct 2?

  • It's always helpful to share a .capx to show what you mean.

  • added capx to OP and also a new audio problem...:)

  • Hmm, have you tried re-creating the problem in a simple project? It's hard to see where the issue might be occurring in a rather large project like you've posted, but a simple project that demonstrates the issue should be relatively easy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I uploaded a simpler version of the same project by removing all the unrelated code to the problem. I have to do it this way because it still needs to have the sounds and pause system.

    I'm beginning to think that this is a problem with Construct 2 because a) no one can explain it; and b) site moderators have been ignoring this thread

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