Godot - Delete Tween
GDScript code example to delete Tween.
kill()
can delete a Tween whether stopped or playing.
If playing, it will immediately stop and delete the Tween.
A Tween deleted with kill()
cannot be reused until reset.
var tween = create_tween().set_loops()
tween.tween_property(self, "modulate", Color( 1, 1, 1, 0), 0.5)
tween.tween_property(self, "modulate", Color( 1, 1, 1, 1), 0.5).set_delay(0.5)
tween.play()
tween.kill()