disable rollback button and skip button when you're inside a screen
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.
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.
disable rollback button and skip button when you're inside a screen
Hello, the title kinda explains it. How to to disable skip and rollback for all screens? Like all together?
Re: disable rollback button and skip button when you're inside a screen
"Inside a screen" isn't really a concept. It's perfectly common, for instance, to have a status overlay screen with money or time-of-day or something, and have it always visible. Technically the quick menu with the skip and rollback buttons *is* a screen. The dialog box is a screen.
Probably the best way to do something like this is to create a pair of functions, "disable_skip_rollback()" and "enable_skip_rollback()" and call them where it makes sense. I'd be happy to help more than that, but you'll need to explain more what you actually want to do.
Probably the best way to do something like this is to create a pair of functions, "disable_skip_rollback()" and "enable_skip_rollback()" and call them where it makes sense. I'd be happy to help more than that, but you'll need to explain more what you actually want to do.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: disable rollback button and skip button when you're inside a screen
I assume you have some kind of inventory screen or other screen you use for something and don't want players to be accidentally rolling forwards or backwards while that screen is shown?
Set modal to True for the screen, and that will fix issues with rollback/rollforward accidentally advancing the game etc.
Alternatively, you can use to make a non-modal screen, modal until an action is performed and the user is returned to the game flow.
Set modal to True for the screen, and that will fix issues with rollback/rollforward accidentally advancing the game etc.
Code: Select all
screen myscreen():
modal True
Code: Select all
call screen myscreenWarning: 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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Who is online
Users browsing this forum: No registered users