Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | szccornish |
extends StaticBody2D
func _ready() → void:
…repeat1()
…repeat2()
func repeat1():
…$Tween.interpolate_property(self, ‘position’, Vector2(0,0), Vector2(0,-119), 1 , Tween.TRANS_LINEAR, Tween.TRANS_LINEAR)
…$Tween.start()
func repeat2():
…$Tween.interpolate_property(self, ‘position’, Vector2(0,-119), Vector2(0,0), 1 , Tween.TRANS_LINEAR, Tween.TRANS_LINEAR)
…$Tween.start()
func _on_Tween_tween_completed(object: Object, key: NodePath) → void:
…_ready()
Question:
How do i get it to loop? because it is not working. thank you