Keep line drawn

Hello, does anyone know if there is any way to draw a line using the draw_line function so that the line remains drawn on the screen without having to be called again in the udpdate function? For example, could this be achieved by editing the render script?
Thank you very much.

The short answer: Nope.

The long answer: Theoretically you could use a render target to draw your lines on and just not clear it, but then you couldn’t move the camera or resize the window or do much else without messing it up. And I think that would be more work than any of the alternatives.

The actual solution(?): Have one object with a script at the root of your game that you send messages to instead of the render script. And that object keeps a list of lines and redraws them every update with “draw_line”.

2 Likes