Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
- Posts: 75
- Joined: Sun Oct 23, 2016 3:51 am
- Deviantart: neometalero
I need to display an image 500px to the right or left, depending on the scene.
I tried to use this code
Code: Select all
xalign 500 yalign 0.0
but I dont see any changes
Working on Attack Helicopter Dating Simulator
- Eileen-Class Veteran
- Posts: 1595
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
Try adding an xanchor (half your game's width)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
- Ren'Py Creator
- Posts: 15152
- 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
Actually, use xpos rather than xalign. The xalign property only makes sense with fractional offsets, rather than whole numbers of pixels.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Users browsing this forum: No registered users