Displaying Images "At Left"

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
briarbun
Regular
Posts: 49
Joined: Wed Feb 20, 2019 4:23 pm
Projects: Helix Felix
Location: PNW
Contact:

Displaying Images "At Left"

#1 Post by briarbun »

Is it possible to change the default image tag "at left" to something other than "all the way to the left"? The characters look pretty unnatural separated by the whole screen.
Could I change the "at left" to mean like "to the left of the center-line"? Or would I have to define a new parameter and name it like "at leftish"? How would I do this?
Would I have to find the X/Y aligns of my character's sprites where I want them? And how would I do that part? Sorry this is so noobish a question, I just couldn't find something like this in the documentation.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Displaying Images "At Left"

#2 Post by Alex »

Both options would work - you can create your own transform to position characters on screen or redefine existed ones (all those left, right, etc.).

Code: Select all

transform my_left:
    xalign 0.3
    
label start:
    "..."
    show eileen at my_left
     "?!"
https://www.renpy.org/doc/html/transforms.html
https://www.renpy.org/doc/html/atl.html#atl

Post Reply

Who is online

Users browsing this forum: Kia