draw_point(x,y)

Note: This function must be placed in the Draw Event for it to work correctly.

 

x = Horizontal position in pixels.

y = Vertical position in pixels.

 

Example

draw_point(100,100);

 

This function will draw a point (pixel) at the x & y co ordinates in the current colour (the current colour can be changed with the function draw_set_color). The default colour is black (c_black). The x and y co ordinates can also be relative to other objects:

 

draw_point(obj_player.x+10,obj_player.y+10);

 

Please see draw_point_color(x,y,col1) if you wish to specify a colour as you draw it.

 

Revision #1