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've been using a custom screen menu to handle extras in the game, but I figured there was no transitions so I tried adding dissolve, but I can't make it work anywhere.
After looking more, I could use action ShowMenu() but I can't use actions in a viewport and use doesn't take parameters for transitions.
I feel like I lost brain cells because I can't figure out how to make it work.
glossary, gallery, glossary_desc, and library are 4 simple screens with a vbox and textbuttons.
I managed to make it work, albeit with a fairly cursed solution, but it works.
I'm just making the action for the textbuttons refresh the menu through ShowMenu so it forces the transition.
Yay.
orian34 wrote: ↑Sat Dec 16, 2023 12:59 pm
I managed to make it work, albeit with a fairly cursed solution, but it works.
I'm just making the action for the textbuttons refresh the menu through ShowMenu so it forces the transition.
Yay.
If you don't need the variable "extras_mode" outside of the screen, you could just make it an argument instead.
After trying, I don't think it works for what I need anyway. It being an external variable means it saves even if you change menus and come back, so it's nice qol to have. Also I can't remove the if not condition because showmenu even with an argument will count all the buttons as selected since extras menu is already displayed.