Ortographic camera window width

I wanna split screen vertically and if player touch the left of the screen go left, if touch right go right.

I am not sure but if I use fixed numbers from game width in project file. May cause problems in different devices. So, what happens in different screen sizes and if I need screen size how can I get from ortographic render

Orthographic supports multiple cameras, each with its own viewport. In your case you add two cameras, one with a viewport that covers the left half of the screen and one for the other half.

The touch/click coordinates (action.x and action.y from on_input()) will always be adjusted to the coordinate space set in game.project, regardless of screen size.

1 Like

My project width is equal to 640px. So I can calculate whether bigger or fewer than 320, right?
Thanks a lot :heart:

1 Like