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.

MCI_command(str) This functions sends the command string to the Windows<br />

multimedia system using the Media Control Interface (MCI). It returns the<br />

return string. You can use this to control all sorts of multimedia devices. See<br />

the Windows documentation for information in how to use this command. For<br />

example MCI_command('play cdaudio from 1') plays a cd (after you<br />

have correctly initialized it using other commands). This function is only for<br />

advanced use!<br />

Splash screens, highscores, and other<br />

pop-ups<br />

In this section we will describe a number of functions that can be used to display splash<br />

screens <strong>with</strong> videos, images, etc., to display messages and ask questions to the player, and to<br />

show the highscore list.<br />

Splash screens<br />

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

Many games have so-called splash screens. These screens show a video, an image, or some<br />

text. Often they are used at the beginning of the game (as an intro), the beginning of a level,<br />

or at the end of the game (for example the credits). In <strong>Game</strong> <strong>Maker</strong> such splash screens <strong>with</strong><br />

text, images or video can be shown at any moment during the game.<br />

Default these splash screens are shown inside the game window, but it is also possible to<br />

show them in a separate window. The game is interrupted while the splash screen is shown.<br />

The player can return to the game by pressing the escape key or by clicking <strong>with</strong> the mouse in<br />

the window. (These settings can be changed; see below.)<br />

The following functions can be used to display the splash screens:<br />

splash_show_video(fname,loop) Shows a video splash screen. fname is<br />

the name of the video file. Whether a particular movie file is supported<br />

depends on the drivers on the machine. Typically you can use .avi, .mpg, and<br />

.wmv files but avoid special codecs. You best put this file in the folder of the<br />

game yourself or in a subfolder. loop indicates whether to loop the video.

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

Saved successfully!

Ooh no, something went wrong!