Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The technique to eliminate the transparent effect in drawline API when lines overlap in Godot 4 is to use the drawpolyline API instead of drawline. This can be done by passing an array of points to the drawpolyline function, which will draw a solid line connecting all the points in the array. By using this technique, there will be no transparency when lines overlap, and the lines will appear solid.