[Solved] Preventing the player to progress while in a 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
Adrian_DVL
Regular
Posts: 141
Joined: Fri Mar 15, 2019 8:46 am
Completed: Clockwork Poison
Projects: Melodic Dates, Clockwork Poison: Salvation
Contact:

[Solved] Preventing the player to progress while in a screen

#1 Post by Adrian_DVL »

Hi mates!

Situation: I have a game where there are parts of straight VN and parts of dating sim, in which I add screens that act as menus for the different options and -and I think this is important- they include imagebuttons, not an imagemap or whatever.

Okay, now I want to show screen whatever-its-name and I want to keep advancing through the text and the scenes for a while until a certain point, where I want the player to interact with the screen WITHOUT the text and the scenes in the main label advancing anymore. In a nutshell, I'd like to disable the CTC feature until the player hits an imagebutton, each one of which has different calls and jumps to other labels.

How can I do that in an efficient and simple way? Setting the screens as modal doesn't seem to work... Thanks!

EDIT!!! I said that all wrong: modal True indeed works! What I meant is that I don't know how to alternate the screen between being modal and not modal while is showing. That's why I'm asking for another way to do this, maybe.
Last edited by Adrian_DVL on Tue Apr 14, 2020 5:12 am, edited 1 time in total.

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Preventing the player to progress while in a screen

#2 Post by Milkymalk »

Call another (empty) screen. This will "lock" the player interaction until you issue a "return" of some kind.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Adrian_DVL
Regular
Posts: 141
Joined: Fri Mar 15, 2019 8:46 am
Completed: Clockwork Poison
Projects: Melodic Dates, Clockwork Poison: Salvation
Contact:

Re: Preventing the player to progress while in a screen

#3 Post by Adrian_DVL »

Milkymalk wrote: Tue Apr 14, 2020 4:54 am Call another (empty) screen. This will "lock" the player interaction until you issue a "return" of some kind.
Yeah, that's what I ended up doing. Thank you!

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]