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.
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:
#1
Post
by VenusEclipse » Fri Jan 28, 2011 1:39 am
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:
#2
Post
by KimiYoriBaka » Fri Jan 28, 2011 1:56 am
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:
#3
Post
by VenusEclipse » Fri Jan 28, 2011 3:36 am
Oh I got it after searching the documentation.
Code: Select all
image bigperson = im.Scale("bigperson.png", 70, 100) #Enter specific numbers <--
Thanks though. ^_^
Users browsing this forum: Google [Bot]