Page 1 of 1

[Solved]Resizing Screens(not window)

Posted: Tue Aug 03, 2021 4:42 pm
by shakerbot
I've been looking everywhere for this and couldn't find anything(only stuff on window sizing). I already have my gui for my game made but I want to test out different sizes of screens in it without having to alter every asset. Does anyone know how to resize a screen and therefore all the elements inside it?

Re: Resizing Screens(not window)

Posted: Tue Aug 03, 2021 5:11 pm
by Imperf3kt
The only way is to physically test it across multiple physical devices.
Your best option is to send the game out for beta testing, but as long as you haven't done anything unusual, your screens should look identical across whatever display device is used.

Re: Resizing Screens(not window)

Posted: Tue Aug 03, 2021 8:23 pm
by hell_oh_world
try to enclose your screen elements inside a `transform` displayable, and use zoom/xzoom/yzoom properties to set the resolution.

Code: Select all

screen test():
  transform:
    zoom 0.5 # sets the size to half of the current resolution.

    pass # your screen elements should go here...

Re: Resizing Screens(not window)

Posted: Wed Aug 04, 2021 11:41 am
by shakerbot
hell_oh_world wrote: Tue Aug 03, 2021 8:23 pm try to enclose your screen elements inside a `transform` displayable, and use zoom/xzoom/yzoom properties to set the resolution.

Code: Select all

screen test():
  transform:
    zoom 0.5 # sets the size to half of the current resolution.

    pass # your screen elements should go here...
Thank you! Thank you! I had to mess around with it a little bit but this basically worked. What I needed to do was apply the transformation inside a frame like this:

Code: Select all

screen test():
	frame:
		at transform:
			 zoom 0.5 # sets the size to half of the current resolution.
		pass # your screen elements should go here...