0 votes

How draw line from point to point like this?
enter image description here

asked Feb 7, 2017 in Engine by Mefihl (199 points)

Your image isn't showing.

1 Answer

+1 vote
Best answer

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.
https://github.com/godotengine/godot/pull/7352

answered Feb 7, 2017 by volzhs (9,462 points)
selected Feb 9, 2017 by Mefihl
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.