[Solved]Resizing Screens(not window)
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
[Solved]Resizing Screens(not window)
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?
Last edited by shakerbot on Wed Aug 04, 2021 11:42 am, edited 1 time in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Resizing Screens(not window)
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.
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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- hell_oh_world
- Miko-Class Veteran
- Posts: 777
- Joined: Fri Jul 12, 2019 5:21 am
- Contact:
Re: Resizing Screens(not window)
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)
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: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...
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...
Who is online
Users browsing this forum: Google [Bot]