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.
-
_ticlock_
- Veteran
- Posts: 393
- Joined: Mon Oct 26, 2020 5:41 pm
-
Contact:
#1
Post
by _ticlock_ » Thu Jul 28, 2022 11:46 pm
Hello All,
Is it some proper way to disable menu and rollback action in a screen. I can add NullAction() for the appropriate keys, but is there a better way to do it?
Code: Select all
screen some_screen():
...
key "game_menu" action NullAction()
key "rollback" action NullAction()
key "rollforward" action NullAction()
-
_ticlock_
- Veteran
- Posts: 393
- Joined: Mon Oct 26, 2020 5:41 pm
-
Contact:
#2
Post
by _ticlock_ » Thu Jul 28, 2022 11:58 pm
Just realized it is better to use
use statement:
Code: Select all
screen disable_menu_rollback():
key "game_menu" action NullAction()
key "rollback" action NullAction()
key "rollforward" action NullAction()
screen some_screen():
...
use disable_menu_rollback()
Anyway, is it a better way?
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#3
Post
by Imperf3kt » Sat Jul 30, 2022 9:13 pm
Instead of showing the screen, you could call it.
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
Users browsing this forum: Bing [Bot], Google [Bot], minyan