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.

Paths<br />

font_get_bold(ind) Returns whether the font <strong>with</strong> the given index is bold.<br />

font_get_italic(ind) Returns whether the font <strong>with</strong> the given index is<br />

italic.<br />

font_get_first(ind) Returns the index of the first character in the font<br />

<strong>with</strong> the given index.<br />

font_get_last(ind) Returns the index of the last character in the font <strong>with</strong><br />

the given index.<br />

The following functions will give you information about a path:<br />

Scripts<br />

path_exists(ind) Returns whether a path <strong>with</strong> the given index exists.<br />

path_get_name(ind) Returns the name of the path <strong>with</strong> the given index.<br />

path_get_length(ind) Returns the length of the path <strong>with</strong> the given index.<br />

path_get_kind(ind) Returns the kind of connections of the path <strong>with</strong> the<br />

given index (0=straight, 1=smooth).<br />

path_get_closed(ind) Returns whether the path is closed or not.<br />

path_get_precision(ind) Returns the precision used for creating<br />

smoothed paths.<br />

path_get_number(ind) Returns the number of defining points for the path.<br />

path_get_point_x(ind,n) Returns the x-coordinate of the n'th defining<br />

point for the path. 0 is the first point.<br />

path_get_point_y(ind,n) Returns the y-coordinate of the n'th defining<br />

point for the path. 0 is the first point.<br />

path_get_point_speed(ind,n) Returns the speed factor at the n'th<br />

defining point for the path. 0 is the first point.<br />

path_get_x(ind,pos) Returns the x-coordinate at position pos for the path.<br />

pos must lie between 0 and 1.<br />

path_get_y(ind,pos) Returns the y-coordinate at position pos for the path.<br />

pos must lie between 0 and 1.<br />

path_get_speed(ind,pos) Returns the speed factor at position pos for the<br />

path. pos must lie between 0 and 1.<br />

The following functions will give you information about a script:

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

Saved successfully!

Ooh no, something went wrong!