How to Make Static Placements? [Solved]

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
User avatar
Suru
Regular
Posts: 111
Joined: Wed Aug 31, 2016 10:27 pm
Contact:

How to Make Static Placements? [Solved]

#1 Post by Suru » Thu Mar 29, 2018 1:59 pm

Is there a way to make a static placement for a character to a specific spot on the screen without having to write out the complete x and y positions every time the character shows up? It would be easier if I could make 'at right' or 'at left' commands for each character instead of having to type out the complete positions every time they appear or disappear.

The preprogrammed left and right commands won't help as characters are often at different positions cause of the way the files are sized to make them look proportionate.

Thanks for any help.

-Suru
Last edited by Suru on Thu Mar 29, 2018 3:09 pm, edited 3 times in total.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to Make Static Placements?

#2 Post by Ocelot » Thu Mar 29, 2018 2:05 pm

Code: Select all

transform somewhere_in_the_lower_right_flipped_vertically:
    xalign 0.8
    yalign 0.66
    yzoom -1.
# . . .
show my_image at somewhere_in_the_lower_right_flipped_vertically
< < insert Rick Cook quote here > >

User avatar
Suru
Regular
Posts: 111
Joined: Wed Aug 31, 2016 10:27 pm
Contact:

Re: How to Make Static Placements?

#3 Post by Suru » Thu Mar 29, 2018 2:15 pm

Thank you.

Post Reply

Who is online

Users browsing this forum: Google [Bot]