How to temporarily disable an imagemap during dialogue [Solved]

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
oatnoodles
Regular
Posts: 47
Joined: Tue Aug 03, 2021 6:26 pm
Projects: Samuda Interval
Organization: Tomuwa Entertainment
Deviantart: oatnoodles
Github: oatnoodles
itch: oatnoodles
Discord: oatnoodles#0099
Contact:

How to temporarily disable an imagemap during dialogue [Solved]

#1 Post by oatnoodles » Wed Aug 18, 2021 9:57 pm

I currently have a screen that includes an imagemap with objects the user can click. When clicked, dialogue will show. I want to disable the option to click other objects while the dialogue is showing. Right now, if I accidentally click the area where another object is on the imagemap while in the dialogue, it'll activate the dialogue for the 2nd clicked object.
Last edited by oatnoodles on Thu Aug 19, 2021 11:29 am, edited 1 time in total.
Ren'py amateur looking to learn as much as possible! Please be patient with me.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to temporarily disable an imagemap during dialogue

#2 Post by Ocelot » Thu Aug 19, 2021 2:15 am

The easies way is to not show an imagemap at all. Show an image of your imagemap. When you need an active imagemap, just display it on top. You can either have image and imagemap on different screens and simply show/call imagemap screen when needed, or you can hve them both in the same screen and control if imagemap is displayed with a single if statement.
< < insert Rick Cook quote here > >

User avatar
oatnoodles
Regular
Posts: 47
Joined: Tue Aug 03, 2021 6:26 pm
Projects: Samuda Interval
Organization: Tomuwa Entertainment
Deviantart: oatnoodles
Github: oatnoodles
itch: oatnoodles
Discord: oatnoodles#0099
Contact:

Re: How to temporarily disable an imagemap during dialogue [Solved]

#3 Post by oatnoodles » Thu Aug 19, 2021 11:30 am

Cool, I think I got that working. Thanks!
Ren'py amateur looking to learn as much as possible! Please be patient with me.

Post Reply

Who is online

Users browsing this forum: No registered users