0 votes


I'm working on a game where I'm using draw_line in a custom node. The line drawn by draw_line appears when this node is placed into another, but when that node is placed into another, the line drawn by draw_line does not appear.

draw_line does appear to be called, as _draw() is called (determined via printing) and draw_line is the only thing that occurs in the _draw() function.

Thank you for the help! Please let me know if there's further any clarification I can offer.

Godot version v3.2.3.stable.official
in Engine by (19 points)

1 Answer

0 votes
Best answer

I was not accounting for the displacement of the parent node of the node where the line is drawn in its parent node. The line was being drawn perfectly well; just out of bounds due to the placement of the node.

by (19 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.