How I can get width and height of the screen?

I don’t understand how I can get width and height. “render.get_window_width()” and “render.get_window_height()” through the modules give me encoded numbers like that: “0x01d3a086e410” and I don’t know what to deal with that

You can only use the render module in the render script. Outside of that, use the window module with this function:

local width, height = window.get_size()
4 Likes

thank you!

Using the window module makes it much simpler to get the screen width and height outside the render script. It’s a handy feature for many use cases