How do i.. [song]

0 favourites
  • 5 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • Hi guys, i've a problem here..

    my game starts on Menu Screen with a music..

    till here it's all ok, i play my game(for about 20 seconds) and when the 'timer' gets to 0, the game go back to Menu Screen, BUT the song starts all again..

    i not want that, the music needs to continue..

    Thanks folks <img src="smileys/smiley2.gif" border="0" align="middle" />

  • You must be more specific.

    However if the problem is what I think maybe this would be a solution.

    If you start your music with "On Start of Layout" in your menu layout, all the times you will return to your menu the music will restart.

    Instead, create another layout where only start the music and then go to menu layout with "go to layout". Now, agter playing your game, when you return to menu layout the music will continue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You must be more specific.

    However if the problem is what I think maybe this would be a solution.

    If you start your music with "On Start of Layout" in your menu layout, all the times you will return to your menu the music will restart.

    Instead, create another layout where only start the music and then go to menu layout with "go to layout". Now, agter playing your game, when you return to menu layout the music will continue.

    Man, i think your idea should resolve my problem, i'll try

    Thanks a lot

  • Another way could be, if you don't want make another layout, use a global variable. When you define it set it to 0. When you load the menu check if it is to 1, if not start music. When you move to your game set it to 1, so when you return to menu the music doesn't restart (because it start only if global variable is to 0).

  • It worked using another layout!

    thanks a lot man <img src="smileys/smiley32.gif" border="0" align="middle" />

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