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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

e adapted to the scaled size of the video or image. This only has effect when<br />

is a separate splash window is used. Default adapt is true.<br />

splash_set_top(top) Indicates whether the window should stay on top of<br />

other windows. This only has effect when is a separate splash window is used.<br />

Default the value is true.<br />

splash_set_interrupt(interrupt) Indicates whether the game play<br />

should be interrupted while showing the splash window. This only has effect<br />

when is a separate splash window is used. Default the value is true.<br />

splash_set_stop_key(stop) Indicates whether to stop the display of the<br />

splash screen when the player pressed the Escape key. Default the value is<br />

true.<br />

splash_set_stop_mouse(stop) Indicates whether to stop the display of<br />

the splash screen when the player pressed the mouse inside the splash screen.<br />

Default the value is true.<br />

There is one particular type of splash info, which is the game information that the user can<br />

enter in <strong>Game</strong> <strong>Maker</strong>. You can display it using the following function. You can also load a<br />

separate info file. This is closely related to the displaying of the text splash screen but the<br />

display is governed by the settings provided when defining the game information and not by<br />

the settings above. It is also displayed in a different window, so it is possible to display both<br />

the game information and a splash screen at the same moment. These functions also work in<br />

the Lite Edition.<br />

show_info() Displays the game information window.<br />

load_info(fname) Loads the game information from the file named fname.<br />

This should be a rich text file (.rtf). This makes it possible to show different<br />

help files at different moments. Note that contrary to the spash screens, this<br />

rtf file cannot contain images.<br />

Pop-up messages and questions<br />

A number of other functions exist to pop up messages, questions, a menu <strong>with</strong> choices, or a<br />

dialog in which the player can enter a number, a string, or indicate a color or file name:<br />

show_message(str) Displays a dialog box <strong>with</strong> the string as a message.<br />

show_message_ext(str,but1,but2,but3) Displays a dialog box <strong>with</strong> the<br />

string as a message and up to three buttons. But1, but2 and but3 contain the

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

Saved successfully!

Ooh no, something went wrong!