Introduction:
Hello people, it's been a while since I asked anything around here and I hope that you can help me,
Many of the topics I will address here are easy to manipulate or find, but the question I can't solve is: How do you make them a single code, to fulfill my need?
The problem:
In short, when a specific character start to talk, I would like the "camera" to focus on that character.
And what's so hard about it?
I would like two effects to occur during this act. One, zoom in on the background. Two, the characters would be raised a bit up.
Notes:
As I mentioned above, there is nothing that we have not seen before, "xzoom", "_last_say_who", "xpos" and "ypos" and so on. But I can't figure out how to merge all these functions together.
Any suggestions?
"Moving" Camera Effect
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.
-
- Newbie
- Posts: 15
- Joined: Tue Oct 09, 2018 9:12 pm
- Contact:
Re: "Moving" Camera Effect
Well, there is a renpy 3d camera. If you search it on Google, there is a YouTube video with the link in the description. The site is in Japanese though.
Re: "Moving" Camera Effect
Hello "mahoop" for a zoom out I wrote such a code, you can reverse it, for a zoom in (the pic is the "intro004pn91"):
(Edit: why the "spoiler" do not work?)
And here a code from a documentation, I forgot from where, that has a zoom in at the beginning, and pan up, you can try out to change the coordinates to fit your project or use to improvise it to a similar display:
(Edit: why the "spoiler" do not work?)
Code: Select all
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.5
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.4
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.3
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.2
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.1
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 08.0
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.9
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.8
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.7
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.6
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.5
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.4
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.3
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.2
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.1
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 07.0
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.9
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.8
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.7
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.6
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.5
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.4
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.3
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.2
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.1
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 06.0
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.9
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.8
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.7
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.6
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.5
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.4
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.3
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.2
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.1
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 05.0
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 04.9
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 04.8
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 04.7
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 04.6
pause 0.01
hide intro004pn91
show intro004pn91:
xalign 0.5
yalign 0.2
zoom 04.5
Code: Select all
abel start:
scene AShipStage2A002aBig:
subpixel True
size (1280, 720) crop (0, 0, 3375, 1898) #first tuple is the size of game screen, second is size of picture in pixels
linear 4.0 crop (615, 935, 1280, 720) # first float is time in seconds, tuples are coordinates of the upper left corner of a rectangle, and the second tuple is the size of that rectangle
linear 8.0 crop (615, 0, 1280, 720) #here we change the y coordinate over 8 seconds to pan the image up
e "Ah, Paris!"
-
- Newbie
- Posts: 15
- Joined: Tue Oct 09, 2018 9:12 pm
- Contact:
Re: "Moving" Camera Effect
apparently, the spoiler is not a "open/close" spoiler. It hides the text instead.
Who is online
Users browsing this forum: Google [Bot]