Draw Line Icon Draw Line

This action will draw a line at a given position within the room. You give the initial x/y position and then the final x/y position and the line will be drawn between them using the current draw colour. The positions can either be an absolute position within the room, or a position relative to the instance calling the action.

NOTE This action is only for use in the various Draw Events, and will not draw anything if used elsewhere.

 

Action Syntax:

Draw Line Action

Arguments:

ArgumentDescription
xThe starting x position
yThe starting y position
x2The finishing x position
y2The finishing y position

 

Example:

Draw Line ExampleThe above action block code draws a pink line across the top of the room.