[Solved] Buttons on screen are clickable through other screen.

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
K-PSZH
Regular
Posts: 33
Joined: Sun May 15, 2022 10:34 am
Soundcloud: K-PSZH
Location: Russia
Contact:

[Solved] Buttons on screen are clickable through other screen.

#1 Post by K-PSZH » Sat May 21, 2022 8:54 pm

I'm calling a game menu from screen using imagebutton with action ShowMenu. However, when game menu appears, the buttons from previous screen are still hoverable and clickable. What's wrong?
Last edited by K-PSZH on Sun May 22, 2022 9:49 am, edited 1 time in total.
Missing/forgetting a lot of simplest things and ask about them here.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Buttons on screen are clickable through other screen.

#2 Post by Imperf3kt » Sat May 21, 2022 9:09 pm

do you have tag menu inside the screen you are calling?

Code: Select all

screen myScreen():
    tag menu
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
K-PSZH
Regular
Posts: 33
Joined: Sun May 15, 2022 10:34 am
Soundcloud: K-PSZH
Location: Russia
Contact:

Re: Buttons on screen are clickable through other screen.

#3 Post by K-PSZH » Sat May 21, 2022 9:21 pm

Imperf3kt wrote:
Sat May 21, 2022 9:09 pm
do you have tag menu inside the screen you are calling?
Yes, I do
Missing/forgetting a lot of simplest things and ask about them here.

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Buttons on screen are clickable through other screen.

#4 Post by philat » Sat May 21, 2022 9:55 pm

Try modal in your menu screen.

rayminator
Miko-Class Veteran
Posts: 754
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Buttons on screen are clickable through other screen.

#5 Post by rayminator » Sat May 21, 2022 11:37 pm

you use model True like so

Code: Select all

screen screen_one:
     model True
     #yours screen codes go here
I would suggest to start learning how to code by reading the document & watching some video

https://www.renpy.org/doc/html/
https://www.youtube.com/

User avatar
K-PSZH
Regular
Posts: 33
Joined: Sun May 15, 2022 10:34 am
Soundcloud: K-PSZH
Location: Russia
Contact:

Re: Buttons on screen are clickable through other screen.

#6 Post by K-PSZH » Sun May 22, 2022 5:38 am

rayminator wrote:
Sat May 21, 2022 11:37 pm
you use model True like so

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/screens.rpy", line 722: u'model' is not a keyword argument or valid child for the screen statement.
    model True
         ^
Missing/forgetting a lot of simplest things and ask about them here.

User avatar
Rex Nihilo
Newbie
Posts: 4
Joined: Sat Jan 18, 2020 10:20 am
Projects: Dig My Way
Tumblr: nihilorex
Deviantart: nihilorex
Github: rex-nihilo
Location: Third Stone from the Sun
Contact:

Re: Buttons on screen are clickable through other screen.

#7 Post by Rex Nihilo » Sun May 22, 2022 7:23 am

Use :
modal True
not :
model True

Post Reply

Who is online

Users browsing this forum: mold.FF