How would I pan an image from right to left? [Solved]

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
Reyes16
Newbie
Posts: 4
Joined: Sat Jan 31, 2015 5:37 pm
Contact:

How would I pan an image from right to left? [Solved]

#1 Post by Reyes16 »

:oops: Please forgive me if its a dumb question, but I was wondering how I would be able to pan the image from...and I was wondering if I go by the white guidelines as a crop guide would it look alright or would I need to make it wider? I'm very new to ren'py and I didn't quite get where the code was supposed to go to do that :oops: :oops:
Attachments
Captured.PNG
(7.21 KiB) Not downloaded yet
Capture.PNG
Last edited by Reyes16 on Tue Apr 25, 2017 7:51 am, edited 1 time in total.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: How would I pan an image from right to left?

#2 Post by IrinaLazareva »

here example with 1870X768 image for resolution 1024x768

Code: Select all

image testimg = "image.png"
transform dimeh:
    xpos -846                       # initial position:  (1870 - 1024 = 846)
    2                                    # 2 seconds pause (optional)
    linear 20 xpos 0              #go to end position with 20 seconds delay

label start:
    scene testimg at dimeh
    "look to the left"
Read this https://www.renpy.org/doc/html/atl.html
https://www.renpy.org/doc/html/transforms.html

Reyes16
Newbie
Posts: 4
Joined: Sat Jan 31, 2015 5:37 pm
Contact:

Re: How would I pan an image from right to left?

#3 Post by Reyes16 »

Thank you so much! This helped me greatly!!

I appreciate your help :))

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]