Resizing images in RenPy itself

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
VenusEclipse
Veteran
Posts: 348
Joined: Fri Mar 13, 2009 5:26 pm
Completed: Princess of Ruin, Frozen Essence, Heartstring Bugs
Organization: Unbroken Hours
Tumblr: unbrokenhours
Deviantart: venus-eclipse
Location: Canada
Contact:

Resizing images in RenPy itself

#1 Post by VenusEclipse »

Let's say I have an image that is really large.

Is there a way to resize an image under here...

Code: Select all

init:
    image bigperson = "bigperson.png"
and here

Code: Select all

    image magicsparkle = Animation("magicsparkles_1.gif", 0.10,
                                "magicsparkles_2.gif", 0.10)
...instead of me typing it manually each time like this?

Code: Select all

show bigperson with dissolve:
    xzoom 0.5 yzoom 0.5
It's so I don't have to save many images with different sizes and it's to save typing.

KimiYoriBaka
Miko-Class Veteran
Posts: 636
Joined: Thu May 14, 2009 8:15 pm
Projects: Castle of Arhannia
Contact:

Re: Resizing images in RenPy itself

#2 Post by KimiYoriBaka »

Code: Select all

init:
    image bigperson:
        "bigperson.png"
        zoom .5
having glanced at the atl documentation, something like this?

VenusEclipse
Veteran
Posts: 348
Joined: Fri Mar 13, 2009 5:26 pm
Completed: Princess of Ruin, Frozen Essence, Heartstring Bugs
Organization: Unbroken Hours
Tumblr: unbrokenhours
Deviantart: venus-eclipse
Location: Canada
Contact:

Re: Resizing images in RenPy itself

#3 Post by VenusEclipse »

Oh I got it after searching the documentation.

Code: Select all

image bigperson = im.Scale("bigperson.png", 70, 100) #Enter specific numbers <--
Thanks though. ^_^

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]