Hi,
On my android device, get_viewport().get_rect().size
returns (1920, 1080)
;
But when i track a sprite position, and that sprite reach the right side, his x
position is 1280
.
And my pc (test) where the screen size is (1280, 720)
when the sprite reach the right side, his x
position is ~1275
which is correct.
Anyone know how to fix that, or am i just doing things in the wrong way to get the screen size ?
You can download the project at this link.