Screen resolution question

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
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Screen resolution question

#1 Post by SundownKid »

I'm considering making all the graphics for my game 1080p and then including an option to run windowed at 720p rather than the other way around, but I don't know how to put in the option to shrink the game window. Is there a way to do this?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Screen resolution question

#2 Post by PyTom »

You'd want to include a button with the action Preference("display", 720.0/1080.0)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Screen resolution question

#3 Post by SundownKid »

That didn't work for me, I tried to use 0.67 instead after checking out this: http://www.renpy.org/doc/html/screen_actions.html

However, it's not exactly 720 pixels across..

User avatar
Samidarenina
Regular
Posts: 137
Joined: Sun Aug 01, 2010 1:21 pm
Contact:

Re: Screen resolution question

#4 Post by Samidarenina »

Maybe a more accurate value like "0.666666666667" would get better results?

Post Reply

Who is online

Users browsing this forum: Google [Bot]