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.

splash_show_text(fname,delay) Shows a text splash screen. fname is<br />

the name of the text file. You can either display standard text files (.txt) or<br />

rich text files (.rtf). Rich text files can e.g. contain images. delay indicates the<br />

delay in milliseconds before returning to the game. use 0 to wait until the<br />

player presses the escape key or clicks <strong>with</strong> the mouse in the window.<br />

splash_show_image(fname,delay) Shows an image splash screen. fname<br />

is the name of the image file. Many image types are supported (for example<br />

.bmp, .jpg, .tif, and .wmf) but no animated images. delay is the delay in milli<br />

seconds before returning to the game.<br />

You can change the way the splash screens are displayed using the functions below:<br />

splash_set_main(main) Indicated whether the splash screen must be<br />

shown in the main game window (true, default) or in a separate window<br />

(false).<br />

splash_set_scale(scale) Sets the scale factor to be used when<br />

displaying a splash video or image. When using a value of 0 the scale factor is<br />

chosen such that the window is filled (default).<br />

splash_set_cursor(vis) Sets whether the cursor should be visible in the<br />

splash screen. Default it is visible. For movies the cursor cannot be switched<br />

off.<br />

splash_set_color(col) Sets the color of the area surrounding the image<br />

or video.<br />

splash_set_caption(cap) Sets the caption for the splash window. This<br />

only has effect when is a separate splash window is used. Default the empty<br />

string is used.<br />

splash_set_fullscreen(full) Indicates whether to use a full screen<br />

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

Default a normal window is used.<br />

splash_set_border(border) Indicates whether the window should have a<br />

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

Default a border is used.<br />

splash_set_size(w,h) Sets the size of the splash window. This only has<br />

effect when is a separate normal splash window is used. Default size is<br />

640x480.<br />

splash_set_adapt(adapt) Indicated whether the size of the window must

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

Saved successfully!

Ooh no, something went wrong!