Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to read the screen size

in Questions Posts: 216

I want to scale the screen but I need to see if there is a way to read the size of the screen



  • dave1707dave1707 Mod
    Posts: 10,055

    The variables WIDTH and HEIGHT give the screen size, but their values don’t change when you use the scale(x,y) function. If you use scale(2,3), then the screen width is WIDTH/2 and the height is HEIGHT/3.

  • Posts: 237

    @pac when the app is launched onto a different device, the variables WIDTH and HEIGHT will automatically become the current width and height dimensions of the screen

  • pacpac
    Posts: 216


Sign In or Register to comment.