[Solved]Resizing Screens(not window)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
shakerbot
Newbie
Posts: 2
Joined: Tue Aug 03, 2021 4:34 pm
Contact:

[Solved]Resizing Screens(not window)

#1 Post 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?
Last edited by shakerbot on Wed Aug 04, 2021 11:42 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Resizing Screens(not window)

#2 Post 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.
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

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Resizing Screens(not window)

#3 Post 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...

shakerbot
Newbie
Posts: 2
Joined: Tue Aug 03, 2021 4:34 pm
Contact:

Re: Resizing Screens(not window)

#4 Post 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...

Post Reply

Who is online

Users browsing this forum: No registered users