I have a little chest that I'd like a coin to appear out of and then fly to the upper right corner.
What I'm trying:
I placed the coin on a CanvasLayer and I'm doing a tween to send it to the corner. The problem is I need to get where the chest is located and then translate that to the CanvasLayer's components to then tween to the corner.
tween.interpolate_property(sprite, "position:x", sprite.position.x, 310, 1, Tween.EASE_IN, Tween.TRANS_LINEAR)
tween.interpolate_property(sprite, "position:y", sprite.position.y, 10, 1, Tween.EASE_IN, Tween.TRANS_LINEAR)
The sprite position that I'm passing into coin to start the tween is I think the global_position to the entire game. Not sure how to translate between the two.