Tween position would work, can not understand.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Idleman

It is really strange, does any one why this happen? Thank you.

Score(Position2d)

  • label
  • tween

the code does not work, nothing happen but the code

tween.interpolate_property(self, "position:y", -20, -45, 0.8, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)

But this code works, really could not understand why

tween.interpolate_property(label, "rect_position:y", -20, -45, 0.8, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)

Is this script attached to the Label or the Score node?

andersmmg | 2021-02-13 06:55

The score node. It is strange, I could tween other properties like scale without issues, but not the position property.

Idleman | 2021-02-14 06:30