Not only Player go out of screen every things



In fullscreen mode everythings showing
and in the normal screen mode too large so showing half of the vertical space
how to solve(player is clamped (ok)
all ready set resolution as per aspect ratio

Hi,

Our game is designed for a aspect ratio. “Fullscreen” might change that aspect ratio, so the solution is: “Don’t make your game fullscreen.”

If you are fine with the blue bars, you could get the edges of the background image (see bounds in the API) during runtime and use them to clamp the player’s position.

Did this help?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms