And lastly, the function which handles created the tween:
print(from)
print(to)
var tween: Tween = create_tween()
self.global_position = apply_card_offset(from)
self.z_index=Z_TOP_CARD
self.visible=true
tween.tween_property(self, "global_position", apply_card_offset(to), duration).set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_CUBIC)
print(self.global_position)
await (tween.finished)
pass```
In this case the tween is created but it never finishes. I have used this animate_card_movement() func without issue for drawing cards from the deck for example.
For the move to discard essentially I am keeping the cards global_position when it is released by the player and setting that as the from and the target is the discard_area position. I have verified the validity of both these positions so im unsure why it is failing