Draws the highscore table string in the room filling the indicated box size using the currently set font and draw colour.


GML Code Example

draw_highscore( x1, y1, x2, y2 );

Argument Description
x1 The x coordinate of the left of the highscore rectangle.
y1 The y coordinate of the top of the highscore rectangle.
x2 The x coordinate of the right of the highscore rectangle.
y2 The y coordinate of the bottom of the highscore rectangle.

Returns: N/A


This simple function will draw the current list of internally stored high scores using the currently set font, colour and alpha values within the specified rectangle. You provide the coordinates for the upper left corner and lower right corner of the rectangular area to draw the text, and GameMaker: Studio will take care of the rest, with spacing and position being done automatically.


GML Code Example

draw_highscore(100, 100, room_width - 100, room_height - 100);

This would draw the highscore table in a rectangle in the middle of the room with a 100px border.

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