[SOLVED] Dissolve when calling screen in text button?

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
Chiligoat
Regular
Posts: 31
Joined: Thu Mar 21, 2019 7:42 pm
Projects: Witches 4 Hire
Location: Sweden
Contact:

[SOLVED] Dissolve when calling screen in text button?

#1 Post by Chiligoat » Sun May 05, 2019 9:23 pm

Hallo all!
Is it in any way possible to call for a Dissolve when calling for a screen to show using a text button, image button or similar through another screen. So far I've had to reroute it through a jump to a label that then calls the screen, and while that works fine I'm just curious if it's possible to do directly here:

Code: Select all

textbutton "Select" action [Hide("scr_hsetup"),Show("scr_hskills")]
(Another thing: doesn't seem possible to just type out hide("self") when trying to hide screens. Is "self" not a viable command in Ren'Py?)
Last edited by Chiligoat on Wed May 08, 2019 12:35 pm, edited 1 time in total.

User avatar
nature1996
Regular
Posts: 62
Joined: Wed Jun 21, 2017 10:35 am
Contact:

Re: Dissolve when calling screen in text button?

#2 Post by nature1996 » Sun May 05, 2019 11:27 pm

If i'm not mistaken, self is defined in python, not in ren'py. You need to use the direct name, even if it is inside itself

Also you should find what you are looking for here:
https://www.renpy.org/doc/html/screen_a ... html?#Hide

You can add a second argument that is a transition, like dissolve
Je parle aussi français

User avatar
Chiligoat
Regular
Posts: 31
Joined: Thu Mar 21, 2019 7:42 pm
Projects: Witches 4 Hire
Location: Sweden
Contact:

Re: Dissolve when calling screen in text button?

#3 Post by Chiligoat » Wed May 08, 2019 12:35 pm

So easy, so overlooked. Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users