Image zoom

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
InsanePenguin
Newbie
Posts: 6
Joined: Tue Apr 24, 2018 1:55 pm
Contact:

Image zoom

#1 Post by InsanePenguin » Mon Jul 16, 2018 2:27 am

Hello Guys,
Ive been searching and looking at tutorials for the answer and I can't seem to come up with anything.

Im trying to make the game zoom in on an image, have the player get a view of the full image as if a camera is moving up ( or scanning ) on the image and then stop at the top. Please advise

User avatar
Remix
Miko-Class Veteran
Posts: 890
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I cannot draw very well)
Projects: An un-named 3d anime based trainer game
Contact:

Re: Image zoom

#2 Post by Remix » Mon Jul 16, 2018 5:49 am

Code: Select all

image panshow = "images/bgs/bg_4.png"

transform panup:
    zoom 1.0
    ypan 100
    linear 2.0 zoom 3.0
    linear 2.0 ypan 0

label start:

    show panshow at panup

    "..."
Hopefully get you heading toward something that works

InsanePenguin
Newbie
Posts: 6
Joined: Tue Apr 24, 2018 1:55 pm
Contact:

Re: Image zoom

#3 Post by InsanePenguin » Mon Jul 16, 2018 10:21 am

Remix wrote:
Mon Jul 16, 2018 5:49 am

Code: Select all

image panshow = "images/bgs/bg_4.png"

transform panup:
    zoom 1.0
    ypan 100
    linear 2.0 zoom 3.0
    linear 2.0 ypan 0

label start:

    show panshow at panup

    "..."
Hopefully get you heading toward something that works
Thanks - its starting to work

phongtinh
Newbie
Posts: 3
Joined: Tue Jul 31, 2018 3:26 am
Tumblr: imaejsc
Deviantart: imaehao
Github: imaehao
Skype: imaehao
Soundcloud: imaehao
itch: imaehao
Contact:

Re: Image zoom

#4 Post by phongtinh » Tue Jul 31, 2018 3:35 am

Thanks -Hopefully get you heading toward something that works

Post Reply

Who is online

Users browsing this forum: MaydohMaydoh