When i launch my game on my PC ('play the project'),
(1280,720), and so to make a sprite be at the bottom of my "window" i just do
pos.y = get_viewport().get_rect().size.height - 50
50 is my sprite height
Well on my PC everything works as expected, but on my android device where the "window" size is
(1920, 1080), doing the same trick to position my sprite at the bottom, it looks like the sprite is out of bounds
So i need to write
pos.y = get_viewport().get_rect().size.height - 410
project settings > Display i got
stretch_aspect = keep_height and
stretch_mode = 2d
And i don't understand cause my sprite should be at the bottom !
I come from cocos2d where everything fit well everywhere, and i'm kind of lost in Godot ^^
So do you guys know how to resolve my this ?