draw_line

draw_line(x1, y1, x2, y2);

Draws a line from (x1,y1) to (x2,y2).

Example

draw_line(room_width/2,room_height/2,mouse_x,mouse_y);

Draws a line from the center of the room to the cursor.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License