Hello,I am very new here. I used to work with novelty but after finding that it has too many limitations, i decided to work with ren'py. i have an introduction screen were i have a vertical background image named "gate.jpg" and i want the camera to pan over it from up to down and then stay there at the lower part of the image as the game continues.
I looked around at the ren'py wiki and here at the forums and i tried out some codes but most of them are about panning from side to side and never ever about vertical panning. also i just can't get any code for panning to work on my project. can anybody help me ?
how to pan camera over background image up and down
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.
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.
-
dreamchaser
- Newbie
- Posts: 1
- Joined: Mon Jun 08, 2015 4:00 am
- Contact:
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: how to pan camera over background image up and down
With ATL (http://www.renpy.org/doc/html/atl.html# ... n-language) you can do it using different methods. Perhaps the simpler way is by using image align. If your image is taller then your screen and you want to show its top part, you can simply do:To show the bottom part:So, to pan from top to bottom during, say, 3 seconds, you can do:Instead of 'linear' you can try 'ease', 'easein' or 'easeout' to your taste.
Yes, to do a horizontal pan you simply use xalign.
Code: Select all
show your_image_name_here:
yalign 0.0Code: Select all
show your_image_name_here:
yalign 1.0Code: Select all
show your_image_name_here:
subpixel True
yalign 0.0
linear 3.0 yalign 1.0Yes, to do a horizontal pan you simply use xalign.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: how to pan camera over background image up and down
There is also examples of panning in the Tutorial game. I recommend playing through it and checking out its code.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
Who is online
Users browsing this forum: Bing [Bot]

