08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

outside this the volume is indicated <strong>with</strong> voloutside. To be precise,<br />

CD music<br />

voloutside is a negative number that indicates the number of hundreds of<br />

decibel that must be subtracted from the inside volume. Between the inside<br />

and outside angle the volume gradually decreases.<br />

This functionality is only available in the Pro Edition of <strong>Game</strong> <strong>Maker</strong>.<br />

There are also a number of functions dealing <strong>with</strong> playing music from a CD.<br />

cd_init() Must be called before using the other functions. Should also be<br />

called when a CD is changed (or simply from time to time).<br />

cd_present() Returns whether a CD is present in the default CD drive.<br />

cd_number() Returns the number of tracks on the CD.<br />

cd_playing() Returns whether the CD is playing.<br />

cd_paused() Returns whether the CD is paused or stopped.<br />

cd_track() Returns the number of the current track (1=the first).<br />

cd_length() Returns the length of the total CD in milliseconds.<br />

cd_track_length(n) Returns the length of track n of the CD in<br />

milliseconds.<br />

cd_position() Returns the current position on the CD in milliseconds.<br />

cd_track_position() Returns the current position in the track being<br />

played in milliseconds.<br />

cd_play(first,last) Tells the CD to play tracks first until last. If you want<br />

to play the full CD give 1 and 1000 as arguments.<br />

cd_stop() Stops playing.<br />

cd_pause() Pauses the playing.<br />

cd_resume() Resumes the playing.<br />

cd_set_position(pos) Sets the position on the CD in milliseconds.<br />

cd_set_track_position(pos) Sets the position in the current track in<br />

milliseconds.<br />

cd_open_door() Opens the door of the CD player.<br />

cd_close_door() Closes the door of the CD player.<br />

There is one very general function to access the multimedia functionality of windows.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!