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.
I have a character where I'd like their dialogue lines to dissolve in and then back out on dismiss.
I know it's possible to dissolve in a specific line (by appending the with clause), but ideally I'd like to specify this in the character definition, and have it apply on dismiss to dissolve out too.
I was hoping something like the below would work, but no joy. Has anyone had cause for this sort of thing before and have a good solution? Thaaanks! :D
transform barry_dialogue:
on show, appear:
alpha 0.
linear 1. alpha 1.
on hide:
alpha 1.
linear 1. alpha 0.
define barry = Character('Barry', what_at_list=[barry_dialogue])
label start:
barry "Hello there, hopefully my words have dissolved in, and in a moment will dissolve away again!"