How to change position of character in renpy??

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.
Post Reply
Message
Author
Littleblackcat
Newbie
Posts: 20
Joined: Wed Dec 18, 2013 11:42 am
Contact:

How to change position of character in renpy??

#1 Post 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

User avatar
zankizuna
Veteran
Posts: 416
Joined: Fri May 04, 2012 2:20 am
Completed: Monochrome Valentine
Projects: Softwar
Deviantart: raseru09
itch: ZanKizuna
Location: Manilaaaaaaaa
Contact:

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

#2 Post by zankizuna »

u can make a copy of your pic, with greater height.


User avatar
zankizuna
Veteran
Posts: 416
Joined: Fri May 04, 2012 2:20 am
Completed: Monochrome Valentine
Projects: Softwar
Deviantart: raseru09
itch: ZanKizuna
Location: Manilaaaaaaaa
Contact:

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

#4 Post by zankizuna »

hahahah, that was helpful? I know there should be a code for that but I dunno what it is.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

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

#5 Post 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

User avatar
Showsni
Miko-Class Veteran
Posts: 563
Joined: Tue Jul 24, 2007 12:58 pm
Contact:

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

#6 Post 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.)

Littleblackcat
Newbie
Posts: 20
Joined: Wed Dec 18, 2013 11:42 am
Contact:

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

#7 Post by Littleblackcat »

Thanks everybody for your help and MERRY CHRISTMAS

Post Reply

Who is online

Users browsing this forum: Google [Bot]