Welcome to the Godot Reference Fork and the Godot Proposals Fork alternatives. Why?
0
3 months agoopen0

Be able to know exactly what pixels are showing in the game in a more intuitive way. Smoothing and margins make impossible to know those values in some cases. Easing:

get_camera_position to get the up left value ( raw | real | smoothed | screen | whatever other internal | etc )

get_camera_center instead get_screen_center ( raw | real | smoothed | screen | whatever other internal | etc )

get_camera_corner to get the down right value ( raw | real | smoothed | screen | whatever other internal | etc )

You obtain retrocompatibility and feature improving. You should get the same result using get_camera_position() and be able to use get_camera_position(screen) too… Then get_screen_center should be deprecated and linked to get_camera_center(screen)

So if you need the up right corners values: Vector2(get_camera_corner(screen).x, get_camera_position(screen).y)

 

Leave a comment