Trying to use custom2d drawing but not everything show up

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

Github Repository: https://github.com/J-Siu/DrawBg

New to Godot, trying to get a hang of the engine with some simple 2d shape drawings but hit on strange situation.

What the project do:

  • “main.gd” will instantiate 5 “dot.tscn”
  • Each"dot" consists of a circle + circle outline(arc) + a label child.

I cut down everything to minimum, not even try to move them, and following is what I get:

Not all dots are drawn and label not even sticking to them.

This is driving me nuts and I am totally clueless.

:bust_in_silhouette: Reply From: JSiu

Got answer from github issue.

It was my own mistake. Inside “dot” scene, I should use local coordinate when doing draw_*, which means (0,0), not position.