extends StaticBody2D
func _ready() -> void:
....repeat1()
....repeat2()
func repeat1():
....$Tween.interpolateproperty(self, 'position', Vector2(0,0), Vector2(0,-119), 1 , Tween.TRANSLINEAR, Tween.TRANS_LINEAR)
....$Tween.start()
func repeat2():
....$Tween.interpolateproperty(self, 'position', Vector2(0,-119), Vector2(0,0), 1 , Tween.TRANSLINEAR, Tween.TRANS_LINEAR)
....$Tween.start()
func onTweentweencompleted(object: Object, key: NodePath) -> void:
...._ready()
Question:
How do i get it to loop? because it is not working. thank you