Music spanning multiple rooms

Started by megacles, Mon 08/12/2003 23:18:29

Previous topic - Next topic

megacles

Hi everyone,

I am fairly new to AGS. I've known about it for a while but have only just recently downloaded it at started to play with it. Most of my newbie questions have been answered by the great tutorials, faqs and forum posts, but I havn't been able to find an answer to this question anywhere:

Is it possible to have one music track span two or more rooms? Or do I have to have a new track for each room?

If anyone could help, I would be very greatful.  :)

- Megacles

Hollister Man

Have never tried it, never got a game far enough to use music!  There is a command whereby you can find where in the song it is, maybe someone can help me out here.  You script it into your room to check a Globalint where you stored the "beat" where the last room ended, and start from there.

Just a suggestion if there isn't an easier way.  :-\
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

Timosity

You can just check the box in each room "play music on room load" and select the track number.

if you want it to play the same track in a few different rooms just put that track number in that room. (if the track is already playing, it won't start again in the next room if it is the same track number) if you want another track for other rooms, just put another track number in that room.

if you want the music track to repeat over and over, use:

SetMusicRepeat(1);

if you want it to play once and then stop use:

SetMusicRepeat(0);

If you change music within a room script, you need to Stop the current music playing first with:

StopMusic();

then you can start a new track using:

PlayMusic(5); //will start music5

That is just the basics of playing music and should be enough info to get you started.

Hope it helps

~Tim

Hollister Man

QuoteIs it possible to have one music track span two or more rooms? Or do I have to have a new track for each room?

I think Mega wanted the track to continue playing at the same point from room to room, not restarting at the beginning.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

TheQisSilent

Well I don't know about you, but in my version of AGS, all you have to do is just start the music and it doesn't stop until you tell it to stop, no matter how many rooms afterwards.  Have you tried it yet?


Follow the updates and download the demo of AFRO JONES- IN COLOR!

SMF spam blocked by CleanTalk