Continuous background music while skipping through layouts.

0 favourites
  • 6 posts
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • Hello, I have a question, if it is possible to make music play, even through I'm changing layouts?

    Music always starts at the beginning, when i change the layout. Can you help me, please?

  • If sound or music tag is not playing, play sound.

    Now this is on a sheet called "PalacesSharedSheet" and all the temples and palaces use this particular line of code so no matter what frame you are in, each frame's sheet will call on (via include) PalacesSharedSheet and thus have this music code included.

    In many cases, layouts will need different tweaking, so each layout SHOULD have it's own Event Sheet, but that doesn't mean some things will carry over as common (music, sound effects, player controls, etc). Most of my sheets include "Platform" for character, TownSharedSheet (or Palaces) for similar things in towns (or palaces), and a few others. The layout "TownA1" has a sheet called "TownA1Sheet" and the same for "TownA2" having "TownA2Sheet". Both TownA1Sheet and TownA2Sheet have "TownSharedSheet" with shared things like the character's motions (on his own sheet, included in TownSharedSheet) and music and sound effects.

  • Maybe the problem is that you are using "on start of layout" to initiate the music. Try to use other trigger (trigger once... for example) to starts it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If sound or music tag is not playing, play sound.

    Can you please upload the picture once again somewhere else? I can't open it...

  • Yep! Here ya go!

    https://dl.dropboxusercontent.com/u/111 ... icloop.png

    It's best to use "is not playing". This with "stop all sounds" or whatever it is in the editor for the starting frame of a new area that requires a new song. This way in case another song is playing and you need to switch to a new song, it will have the "stop all" going before heading into the new song.

  • Thank you, guys I'm still learning and you were really helpful ^^

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