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.

image_yscale The vertical yscale. 1 is no scaling. You can use a value of -1<br />

to flip the sprite vertically.<br />

image_angle The angle <strong>with</strong> which the sprite is rotated. You specify this in<br />

degrees, counterclockwise. A value of 0 indicates no rotation. This variable<br />

can only be set in the Pro Edition!<br />

image_alpha Transparency (alpha) value to use when drawing the image. A<br />

value of 1 is the normal opaque setting; a value of 0 is completely<br />

transparent.<br />

image_blend Blending color used when drawing the sprite. A value of<br />

c_white is the default. When you specify a different value the image is blended<br />

<strong>with</strong> this color. This can be used to colorize the sprite on the fly. This variable<br />

can only be set in the Pro Edition!<br />

bbox_left* Left side of the bounding box of the instance in the room, as<br />

defined by its image (taking scaling into account).<br />

bbox_right* Right side of the bounding box of the instance in the room.<br />

bbox_top* Top side of the bounding box of the instance in the room.<br />

bbox_bottom* Bottom side of the bounding box of the instance in the room.<br />

Backgrounds<br />

Each room can have up to 8 backgrounds. Also it has a background color. All aspects of these<br />

backgrounds you can change in a piece of code using the following variables (note that some<br />

are arrays that range from 0 to 7, indicating the different backgrounds):<br />

background_color Background color for the room.<br />

background_showcolor Whether to clear the window in the background<br />

color.<br />

background_visible[0..7] Whether the particular background image is<br />

visible.<br />

background_foreground[0..7] Whether the background is actually a<br />

foreground.<br />

background_index[0..7] Background image index for the background.<br />

background_x[0..7] X position of the background image.<br />

background_y[0...7] Y position of the background image.<br />

background_width[0...7]* Width of the background image.

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

Saved successfully!

Ooh no, something went wrong!