Quick 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
Guest

Quick Question

#1 Post by Guest » Sun Jan 25, 2009 3:48 pm

When using factor zoom or the "with zoomout" function, how do I determine the origin from where the zoom takes place? (I want the image to zoom out from its middle and not from its top right corner.)

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Quick Question

#2 Post by PyTom » Sun Jan 25, 2009 4:11 pm

The zoom occurs before placement, so the usual xanchor and yanchor mechanisms apply. Usually what you want to do is to set xanchor=0.5, yanchor=0.5, and then use xpos and ypos to position the center of the zoom where you want it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Guest

Re: Quick Question

#3 Post by Guest » Mon Jan 26, 2009 4:39 pm

Works fine now - thanks a lot!

Post Reply

Who is online

Users browsing this forum: No registered users