I want to achieve something similar to this animation:
What I have
My project tree looks like this:
Control > Panel > Path2D > PathFollow2D > Node2D > Sprite & (Node > Line2D)
Panel is the green background. The
Path2D together with the
PathFollow2D move the
Sprite along the desired route.
My idea is to draw the pattern using multiple
Line2D nodes. First I tried to just use one single long line for the full path but after adding ~5100
Vector2 objects to the
Line2D.Points property, the line stopped working. Some of the first few points (except the very first one) disappear and adding new points to the
Line2D.Points property has no effect at all.
I also ran into the error
ERROR: _draw_polygon: Condition ' buffer_ofs > data.polygon_buffer_size ' is true. a couple of times.
What other options are there to achieve something similar to this?