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.
-
meitantei_detective
- Newbie
- Posts: 1
- Joined: Tue Mar 06, 2018 3:12 am
-
Contact:
#1
Post
by meitantei_detective » Tue Mar 06, 2018 3:42 am
If I create an inventory screen and then show it, while that screen is being shown, how do I make it so that right click (which brings in the save screen) and rollback feature is disabled? And have these two features reactivated when I hide the screen again?
Code: Select all
screen inventory:
zorder 1
modal True
add "images/inventory_bg.jpg"
text "Inventory description here"
xpos 128 ypos 151
textbutton _("{size=40}BACK"):
xalign 1.0
yalign 0
action Hide('inventory')
-
ReDZiX
- Regular
- Posts: 32
- Joined: Thu Jan 04, 2018 12:42 pm
-
Contact:
#2
Post
by ReDZiX » Tue Mar 06, 2018 11:14 am
To disable right click you can add a key statement to the screen:
Code: Select all
key 'mouseup_3' action NullAction()
As for disabling rollback, not entirely sure, hope someone else can help.
-
Milkymalk
- Miko-Class Veteran
- Posts: 752
- 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:
#3
Post
by Milkymalk » Wed Mar 07, 2018 6:50 pm
One option: Also disable all keys that do a rollback, which are quite a few if I remember correctly. At least 3.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Users browsing this forum: No registered users