draw_line - draw a line between two points
draw_line ( x1, y1, x2, y2 )
- x1 - x-position of point one
- y1 - y-position of point one
- x2 - x-position of point two
- y2 - y-position of point two
draw_line() draws a line between two points in the current drawing color.
Example of Use
The code in this example will draw a red, diagonal line from the top/left of the a [[room]] to the bottom/right corner.
Missile Line / Trail
The code in this example will draw a white line from a missile's starting position to its current position. Useful for games like Missile Command.
The code in this example will draw an aqua line between the object executing the code and the mouse location. Useful for mouse controlled lasers.