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.
I often move the camera around in my CGs to make them more dynamic, but when I try to transition from my defined "bottom_center" to either "top_center", "top_right" or "top_left", it doesn't move the camera with ease, it just jumps from one part of the picture to the other. On the other hand, transitions from "top_center", "top_right" or "top_left" to "bottom_center" work fine. Also, when I defined "almost_top_center" and used it instead "top_center", it worked too.
scene cg shinya car closer at top_right
with blink
"TEXT 01"
show cg shinya car closer:
ease 0.5 top_center #WORKS FINE#
"TEXT 02"
show cg shinya car closer:
ease 0.3 bottom_center #WORKS FINE#
"TEXT 03"
show cg shinya car closer:
ease 0.3 top_center #DOESN'T WORK, JUST SKIPS TO THIS PART#
#HOWEVER, THIS WORKS:#
show cg shinya car closer:
ease 0.3 almost_top_center
I'm very confused. I asked my friend (who's a programmer) and he said it might be something connected to absolute and relative values, but we couldn't find how they work in Ren'Py. I'd really appreciate any help with this problem, thank you!
Last edited by Moonspeck on Wed Jan 17, 2018 3:07 pm, edited 1 time in total.
It worked, thank you very much! Do you by any chance know why that happens? It'll keep bugging me^^''
mitoky wrote: ↑Sat Jan 13, 2018 3:22 pm
I dont know how to fix the problem, but does that problem also occur when you define the positions without transform? Like this:
Moonspeck wrote: ↑Sat Jan 13, 2018 4:03 pmDo you by any chance know why that happens? It'll keep bugging me^^''
- In position properties, integer numbers mean absolute positions: number of pixels from the top left corner.
- float numbers are relative positions respect the width or height of the screen.
xpos 30 -> 30 pixels from the left.
xpos 0.3 -> 30% of the screen from the left.
Moonspeck wrote: ↑Sat Jan 13, 2018 4:03 pmDo you by any chance know why that happens? It'll keep bugging me^^''
- In position properties, integer numbers mean absolute positions: number of pixels from the top left corner.
- float numbers are relative positions respect the width or height of the screen.
xpos 30 -> 30 pixels from the left.
xpos 0.3 -> 30% of the screen from the left.
To further elaborate on this, your issue was caused by trying to use both.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Moonspeck wrote: ↑Sat Jan 13, 2018 4:03 pmDo you by any chance know why that happens? It'll keep bugging me^^''
- In position properties, integer numbers mean absolute positions: number of pixels from the top left corner.
- float numbers are relative positions respect the width or height of the screen.
xpos 30 -> 30 pixels from the left.
xpos 0.3 -> 30% of the screen from the left.
To further elaborate on this, your issue was caused by trying to use both.
Okay, I think I get it, thank you both for explaining it to me