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'm not 100% sure if I can explain well my coding problem:
I want the image of the char doing a small traslation down then back up, representing an acknowledge nodding (also, a more marked traslation down/up representing a bowing) but my tests fails, with sylvie (the most abused actress in Ren'py history, perhaps...) remaining firm, but the traslation along X axis works as advertised in documentation.
image test_im = "eileen_vhappy.png"
define e = Character('Eileen', color="#c8ffc8")
transform nod:
yoffset 0
linear 0.2 yoffset 50
linear 0.2 yoffset 0
# The game starts here.
label start:
show test_im
"ok?"
show test_im at nod
e "yes."
"?"
Thanks to both of you; alex's solution works (albeit for me is a "bow", but it's a case of YMMV) but that sundownkid's don't work (yea, there was a typo in my post, but I wasn't cut'n pasting, but working by hand) and I'm mulling on this work/don't work... I feel that the issue lies in yalign.
So, to clarify, if I need an image to go offscreen in x or y direction, I have to use yoffset or xoffset? Negative values for xalign/yalign or xpos/ypos will not work?
What's in a loop? A loop iterated in any other way would output as sweet.
-- Have a look at my GxG kinetic novel, Movement, if you have the chance?
You can use different positional properties to place your images onscreen - http://www.renpy.org/doc/html/style_pro ... properties
xoffset and yoffset are just set the distance in pixels where the image should be moved from it's current position.