![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | davidyu |
Hi
I’m trying to make tween animation to specific point of Line2D.
var tween := create_tween()
tween.tween_property($Line2D, 'points[1]', Vector2(48, 48), 1.0)
but somehow it cannot find points[1]
, it throws error that type are missed Nil
→ Vector2
.
I tried also to set the whole points array
tween.tween_property($Line2D, 'points', PackedVector2Array([start, end]), 1.0)
but this works without animation.
Does anybody know how to easily animate Line2D with tween?