Possible Now To Scale Image To Screen?

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
bDunks
Newbie
Posts: 21
Joined: Tue Jan 08, 2019 3:07 pm
Contact:

Possible Now To Scale Image To Screen?

#1 Post by bDunks »

Hi all.
I am using ver. 7.3.5 and am curious if there has been a change that allows one to scale image/s to fit to screen, without modifying the image outside of Renpy, or using size, zoom, etc.
i.e. some code that just says "fit to screen," ha ha.

Size is fine when using landscape images, but kind of a pain for portrait, as far as my knowledge.

I appreciate your time.
Thank you. :)

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Possible Now To Scale Image To Screen?

#2 Post by rayminator »

this is how to scale images in renpy by using im.Scale()

Code: Select all

imagebutton idle im.Scale("image/s.png", 350, 550)

or 

add im.Scale("image/s.png", 350, 550)

Post Reply

Who is online

Users browsing this forum: Google [Bot]