music playing

Get help using Construct 2

Post » Tue Aug 20, 2013 7:28 am

hi,

   i have a small issue , actually i have 3 modes in my my game ,in the main page i gave , on start of layout play music, and once i go 1st mode it's working fine and once i click back the music is starting again the music is running two time, it is disturbing my game, can any one help me please
B
5
S
2
Posts: 91
Reputation: 738

Post » Tue Aug 20, 2013 8:12 am

@narasimha

I don't really understand what you are asking, from your message. But perhaps if you post a capx of your project, it'll be easier to help.

:)Blacksmith2013-08-20 08:12:30
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Tue Aug 20, 2013 8:40 am

Just for this instance, try creating a global variable called "MusicPlaying" and set that to 0. Then on the start of layout, enter a subcondition "if MusicPlaying = 0", play music. Else "if MusicPlaying = 1" put nothing. This should prevent it from starting again.
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Tue Aug 20, 2013 8:43 am

Thanks it's working dude
B
5
S
2
Posts: 91
Reputation: 738


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex and 30 guests