0 votes


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, 
        Tween.TRANS_LINEAR, Tween.EASE_OUT)

How make it work?

Thank you,

in Engine by (24 points)

thank youuu :) saved my life

1 Answer

0 votes
Best answer

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

by (20,897 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.