Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | maer |
Hello,
I am trying to make animation with Tween node and does not want to work. I have simple nodes:
Root(Node2D)
- 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)
$tween.start()
How make it work?
Thank you,
thank youuu saved my life
Aymeric Astaing | 2019-06-22 17:27