change default position for show

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
Kia
Eileen-Class Veteran
Posts: 1008
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

change default position for show

#1 Post by Kia » Fri Jan 04, 2019 3:21 pm

to simplify the code and avoid lots of "align(0.5,0.5)" in the code I have changed the default style to:

Code: Select all

style default:
    align(0.5,0.5)
and now the default position images are shown is on truecenter instead of center. this says "This can be redefined to change the default placement of images shown with the show or scene statements." but when I tried:

Code: Select all

default default = Position(yalign=1.0)
nothing happened, is there any way to change the default position for show without changing the default style?

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: change default position for show

#2 Post by IrinaLazareva » Fri Jan 04, 2019 4:50 pm

Not tested, but try

Code: Select all

transform default:
    yalign 1.0

User avatar
Kia
Eileen-Class Veteran
Posts: 1008
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: change default position for show

#3 Post by Kia » Fri Jan 04, 2019 6:14 pm

IrinaLazareva wrote:
Fri Jan 04, 2019 4:50 pm
Not tested, but try

Code: Select all

transform default:
    yalign 1.0
doesn't seem to work
I wonder if there's a default position defined or the default is whatever is in the default style.

Post Reply

Who is online

Users browsing this forum: No registered users