Hey there !
Working with line 2D to give my projectile a trail.
Simple code, simple process. But for some reasons my trail is all over the place and on thhe edge of the map...
do you guys see anything wrong ?
here is the video : (Look on the edge top right and bottom left when the projectile is fire)
these are my nodes :
and this is my super short script from trail2d node :
point = getparent().globalposition
if points.size() >150:
Now, i print(point) and pick one of the point to double chheck that i have the right location : (912.511902, 437.014679)
I do. 900 with, 437 heights. that matches the screen position of the projectile.