Position animation does not work with Tween

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


I am trying to make animation with Tween node and does not want to work. I have simple nodes:

- Sprite1(Sprite1)
-- tween(Tween)

and the following code for the Sprite1:

extends Sprite
func _ready():
	$tween.interpolate_property(self, 'transform/position', 
		position, Vector2(500.0,500.0), 1, 

How make it work?

Thank you,

thank youuu :slight_smile: saved my life

Aymeric Astaing | 2019-06-22 17:27

:bust_in_silhouette: Reply From: kidscancode

The correct property name is position. FYI, you can hover over the property in the Inspector to see the correct name.