Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | blueSuedeShoes |
Regarding
https://forum.godotengine.org/17247/how-to-know-the-screen-position-of-a-node2d
It seems get_global_transform_with_canvas() is no longer an option with Godot 3?
I’m attempting to have a CanvasLayer element appear directly above a character. I just need a method to return the position of the character relevant to the screen and camera.
Thanks!
y dont u make use of global script use it to get ur viewport rect
code | 2018-07-24 11:32
How would I then go about tracking a Position2D (for instance) within that space as it moves?
blueSuedeShoes | 2018-07-24 14:51
Why isn’t it a option anymore, the method still exist in CanvasItem?
coffeeDragon | 2018-07-25 09:23