Page 1 of 1

How to change position of character in renpy??

Posted: Mon Dec 23, 2013 7:07 am
by Littleblackcat
Usually I write:


show sylvie
or
show sylvie at right

This time, I want to make the character look taller, so I want to raise him. How do I do that?

Thanks in advance

Re: How to change position of character in renpy??

Posted: Mon Dec 23, 2013 7:28 am
by zankizuna
u can make a copy of your pic, with greater height.

Re: How to change position of character in renpy??

Posted: Mon Dec 23, 2013 8:13 am
by Littleblackcat
Thanks!

Re: How to change position of character in renpy??

Posted: Tue Dec 24, 2013 4:56 am
by zankizuna
hahahah, that was helpful? I know there should be a code for that but I dunno what it is.

Re: How to change position of character in renpy??

Posted: Tue Dec 24, 2013 6:14 am
by SundownKid
To do this with one image you would use the tall image, and define it twice, but make the yalign of the shorter image greater than 1.

Code: Select all

image dude_tall = "dude.png"

image dude:
   "dude.png"
   yalign 1.1

Re: How to change position of character in renpy??

Posted: Tue Dec 24, 2013 1:28 pm
by Showsni
If you just want to make a particular image higher once or twice, the easiest way is to use ATL: http://www.renpy.org/doc/html/atl.html#atl

In this case, you could just do something like

Code: Select all

show sylvie:
    yalign 0.8
which will make it appear 0.8 of the way up the screen.

(Alternatives are using ATL to define a second, higher image as above, making a whole new image, or setting up a transform to automatically show anything higher using either ATL or the Transform() class.)

Really, it depends on how often you want to use this and who with as to which method you use - if you only want to use it very occasionally, it's probably easiest to do an ATL block with the show as I did above. If it happens pretty frequently for just one character, define a taller image using ATL for that character as SundownKid shows you above. If it happens to a bunch of different characters quite a lot, make your own transform (something like

Code: Select all

transform middlehigh:
    xalign 0.5
    yalign 0.8
) which you can then just use with show sylvie at middlehigh and so on.)

Re: How to change position of character in renpy??

Posted: Wed Dec 25, 2013 4:33 am
by Littleblackcat
Thanks everybody for your help and MERRY CHRISTMAS