Default with dissolve characters & Choices in textbox

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
Roselia-Thorns
Regular
Posts: 27
Joined: Tue Sep 13, 2016 10:01 pm
Projects: Undertale: Kissy Cutie
Tumblr: roseradetea
itch: roseradetea
Contact:

Default with dissolve characters & Choices in textbox

#1 Post by Roselia-Thorns »

Does anyone know how can I make show and hide for character image default with dissolve? So not to writte "with dissolve" on each image I tried this code but it affects everything, including the text box. I just want it to be default for character images, nothing else.

Code: Select all

init python:
    def replacement_show(*args, **kwargs):
        renpy.transition(Dissolve(.3))
        renpy.show(*args, **kwargs)
        return 
    config.show = replacement_show
    
    def replacement_hide(*args, **kwargs):
        renpy.transition(Dissolve(.3))
        renpy.hide(*args, **kwargs)
        return 
    config.hide = replacement_hide

And is there a way to put the choices menu in the textbox? And how can you align the text to the right?

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Default with dissolve characters & Choices in textbox

#2 Post by Potato0095 »

It's not what you want, but the thing that most helped me was the define code:

Code: Select all

define em = Dissolve(.2)
With this, I animate the character's expressions simply with an "with em", it saves me a lot of time. I searched all over renpy.org, but couldn't find anything.
"There are two types of lies: Lies that hurt, and lies that don't."

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Ocelot