Draw line from point to point

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mefihl
:warning: Old Version Published before Godot 3 was released.

How draw line from point to point like this?

Your image isn’t showing.

avencherus | 2017-02-07 22:03

:bust_in_silhouette: Reply From: volzhs

There is draw_line, draw_polygon, draw_primitive, draw_rect method.
You can draw something in func _draw() with these method.
If you want to call _draw() to update, use update()

And there is pending PR for more elegant way.