Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Mon 01/09/2003 01:38:26

Title: music.playing variable
Post by: deltamatrix on Mon 01/09/2003 01:38:26
Please CJ!

Can we have a variable that returns the number of the specific music thats playing.
Title: Re:music.playing variable
Post by: Ishmael on Mon 01/09/2003 08:12:50
GetCurrentMusic
GetCurrentMusic()

Returns the number of the currently playing background music, or -1 if no music is playing.
Example:

if (GetCurrentMusic()==-1)
   PlayMusic(2);

will play music2 if no music is playing.

From the manual...


RTFM!!!
Title: Re:music.playing variable
Post by: on Mon 01/09/2003 23:58:11
oh fuck!
Title: Re:music.playing variable
Post by: Ishmael on Tue 02/09/2003 04:42:17
>:/ That wasn't very nicely said...
Title: Re:music.playing variable
Post by: Pumaman on Tue 02/09/2003 19:10:33
Yes, there's really no need for that sort of language on these forums. A simple "thanks" to the person who helped you out would suffice.

:)