Automated Transforms

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
Elliot Dreemurr
Newbie
Posts: 17
Joined: Fri Aug 13, 2021 5:38 pm
Projects: Only You
Discord: 💙 Elliot/Ellie Dreemurr 💙#2000
Contact:

Automated Transforms

#1 Post by Elliot Dreemurr »

i have these 2 transforms here and i would like 2 know how i could possibly have them function automatically when a character speaks and stops speaking so that i dont have 2 input "show (character) at (transform)" every time during a conversation between characters

Code: Select all

transform active(x=640):
    xcenter x yoffset 0 zoom 0.95 alpha 0.50 yanchor 1.0 ypos 1.03
    easein .25 alpha 1.00 zoom 1.00

transform inactive(x=640):
    xcenter x yoffset 0 zoom 1.00 alpha 1.00 yanchor 1.0 ypos 1.03
    easein .25 alpha 0.50 zoom 0.95

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Automated Transforms

#2 Post by emz911 »

You might want to look into character callback: https://www.renpy.org/doc/html/characte ... -callbacks
Something similar for your reference: viewtopic.php?t=61319

Post Reply

Who is online

Users browsing this forum: Bing [Bot]