Zooming in on Images in real time?

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
Ikaros
Newbie
Posts: 8
Joined: Tue Dec 17, 2013 6:54 pm
Contact:

Zooming in on Images in real time?

#1 Post by Ikaros »

Say I have a project that is 1280, 720p

HOW do i zoom in on the center? I can't for the LIFE of me figure it out, I've read the guide over and over again but i just can't seem to do it with 1280, 720
Someone help please? <3

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Zooming in on Images in real time?

#2 Post by SundownKid »

If you wanted to zoom in on, say, a background picture, you can do it like this:

Code: Select all

image backgroundpic:
   "image.png"
   xanchor 0.5
   yanchor 0.5
   zoom 1.5
Or alternatively, zooming over a 3 second period...

Code: Select all

image backgroundpic:
   "image.png"
   xanchor 0.5
   yanchor 0.5
   linear 3.0 zoom 1.5

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot]