SOLVED:How do I adjust character position in SHOW xxxx AT xx

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
webryder
Regular
Posts: 40
Joined: Thu Feb 06, 2014 9:46 pm
Contact:

SOLVED:How do I adjust character position in SHOW xxxx AT xx

#1 Post by webryder »

Hi all,

I have two characters appearing in a scene at the same time. I put them in by using statements like:

Code: Select all

    show hiroshi smile2 at right
    show sarah smile at left
The trouble I am having is that they look very far apart. I want to move them so they are closer together, but still at the right and the left as stated. Is there a way to adjust how far to the right or left these characters are?

Thanks!
Last edited by webryder on Wed Feb 04, 2015 11:57 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How do I adjust character position in SHOW xxxx AT xx

#2 Post by PyTom »

You can redefine the right and left transforms:

Code: Select all

transform left:
     xalign 0.25 yalign 1.0

transform right:
     xalign 0.75 yalign 1.0
or define your own:

Code: Select all

transform myleft:
     xalign 0.25 yalign 1.0

transform myright:
     xalign 0.75 yalign 1.0
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

webryder
Regular
Posts: 40
Joined: Thu Feb 06, 2014 9:46 pm
Contact:

Re: How do I adjust character position in SHOW xxxx AT xx

#3 Post by webryder »

Thanks! Worked like a charm!

Post Reply

Who is online

Users browsing this forum: No registered users