|
draw_text(x,y,string) |
|
Drag & Drop equivalent :
x = Horizontal position (in pixels) on screen y = Vertical position (in pixels) on screen string = The thing you want displayed on screen
Example #1:
This function allows you to draw text directly on the screen in the current colour (unlike show_message which pops up a message box). The x and y positions needn't be specific, they can be relative to an object, also, the 'string' can be a variable:
Example #2:
The most common use is to draw lives / score / room within a view and keep it in view as the player moves, you need to use view_xview and view_yview in the x and y positions to achieve this:
Example #3:
Revision #1
|