![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | lucasfazzi |
Good afternoon my friends.
I have this little character, which is a drag and drop sprite and it produces a line as it is dragged; the drawn line script is on the 2D Line node itself and works fine.
However, sometimes it stops working randomly and does not return to work anymore; could anyone help me to understand my mistake?
Thank you!
the code:
extends Line2D
var target
var point
export (NodePath) var targetPath
func _ready():
target = get_node(targetPath)
pass
func _process(delta):
global_position = Vector2(0,0)
global_rotation = 0
point = target.global_position
add_point(point)
I experience the same issue with Godot 3.2.1 stable mono.
When the Line2D reaches 2700 Points, funny things start to happen like in your screenshot and video.
eddex | 2020-05-15 21:35