Hi. Currently I'm doing a platformer game. However Im stuck on how to do an effect for example when the player collect a gem, it will instance a sprite node and will tween towards the gems UI (Label node). Please see picture.
HUD to world coordinates
rectglobalposition will always return a same value. So I'm not sure how do I convert it to world coordinates ? Please help me. Thanks
Maybe do it the other way around - reparent the coin to the HUD then convert world coordinates into screen coordiantes:
coin.global_position = get_global_transform_with_canvas().origin
Thanks man. This is what I want.