music in application

For questions about using Classic.

Post » Sun Jan 25, 2009 5:57 pm

intro:
so... i got a problem here.. my "game" has only 2 layouts yet. 1st one is the MAIN MENU. the 2nd layout is an exit-layout ("wanna exit?" YES\NO). in the 1st i have XAudio playing "ost.mp3" by event "start on layout". its ok, music goes. but when i click EXIT - game goes to the 2nd Layout and there music stops.

Q:
how to make it works as i need? (i wanna music to play independently on any layouts).

btw. how to pause and to stop it after?))

thx
B
1
G
3
Posts: 8
Reputation: 841

Post » Sun Jan 25, 2009 6:18 pm

The XAudio2 object has a "Global" property, if you check that, it should play music across all layouts
B
2
S
1
G
5
Posts: 59
Reputation: 1,518

Post » Mon Jan 26, 2009 9:07 am

thanx man, now it works! :D i just missed this option))
B
1
G
3
Posts: 8
Reputation: 841


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests