draw_background

Draw a background without colour blending or transparency

Syntax:

GML Code Example

draw_background(back, x, y);


Argument Description
back The index of the background to draw.
x The x coordinate of where to draw the background.
y The y coordinate of where to draw the background.


Returns: N/A


Description

With this function you can draw any of the game's background assets at a given position within the room, with the top left corner of the image being drawn at the specified x/y position.


Example:

GML Code Example

draw_background(bck_Sky, view_xview[0], view_yview[0]);

The above code draws the background indexed in "bck_Sky" at same position as view[0].





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here