draw_line not appearing in parent of parent?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sporklpony


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.

:bust_in_silhouette: Reply From: sporklpony

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.