Page 1 of 1

Resizing images in RenPy itself

Posted: Fri Jan 28, 2011 1:39 am
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.

Re: Resizing images in RenPy itself

Posted: Fri Jan 28, 2011 1:56 am
by KimiYoriBaka

Code: Select all

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

Re: Resizing images in RenPy itself

Posted: Fri Jan 28, 2011 3:36 am
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. ^_^