Screen on top of other

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
Shlizer
Newbie
Posts: 7
Joined: Fri Sep 03, 2021 12:47 am
Github: https://github.com/Shlizer
Contact:

Screen on top of other

#1 Post by Shlizer »

Hi. I'm currently working on my own achievement module, similar to one like that: viewtopic.php?f=51&t=61320&sid=f660ea20 ... 9ccc72ad89 but I'm having truble with popup overlay.

What I'm trying to achieve?
I'm going to create screen for showing freshly gained achievements, but I don't like the idea of hiding it by showing menu or going further with conversation. What I mean by that is for eg. popup will be shown for 3s and then fade out (of slide, whatever), but it should be visible all those 3s - no matter if user open menu, label will change or so.. the problem is I don't know where I should put that screen and how to call it.

I tried using just show on main_menu, but it obviously gets hidden, while I close menu. I tried to append it to config.overlay_screens, but then it can be seen only in-game and is not visible in menus. I just can't figure out how to add layer on top of game and menu so it will show my screen no matter where user is (at least I guess that's propper aproach), but I can't make it happen.

Can someone guide me where should I look solution or is it even possible to do.

Post Reply

Who is online

Users browsing this forum: No registered users