Disable User Input
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.
-
- Newbie
- Posts: 23
- Joined: Mon Feb 11, 2019 10:05 pm
- IRC Nick: sidewalkchalk
- Deviantart: wellsgrant
- Soundcloud: sidewalkchalka
- Location: Who even knows at this point...
- Contact:
Disable User Input
Is there a way to disable all user input to make them stuck on a screen until they hit Alt-F4 (or better yet, restart their computer). All of the other options I have tried, have still been able to skip or open the options menu.
Ooo look... a penny!
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Disable User Input
Add modal True to the screen and don't give them any buttons to close it?
Or use call screen in the script with no Return() action in the screen.
Or place a full screen button that is invisible on a high zorder with an action of NullAction()
How will you handle saving? Forced auto save before the screen appears? Most players will not appreciate playing a game, only to come across a screen that actively forces you to close the game without saving.
Or use call screen in the script with no Return() action in the screen.
Or place a full screen button that is invisible on a high zorder with an action of NullAction()
How will you handle saving? Forced auto save before the screen appears? Most players will not appreciate playing a game, only to come across a screen that actively forces you to close the game without saving.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Newbie
- Posts: 23
- Joined: Mon Feb 11, 2019 10:05 pm
- IRC Nick: sidewalkchalk
- Deviantart: wellsgrant
- Soundcloud: sidewalkchalka
- Location: Who even knows at this point...
- Contact:
Re: Disable User Input
All I can do is stop the text from advancing but I can't stop them from hitting escape to quit the game.
Ooo look... a penny!
-
- Newbie
- Posts: 23
- Joined: Mon Feb 11, 2019 10:05 pm
- IRC Nick: sidewalkchalk
- Deviantart: wellsgrant
- Soundcloud: sidewalkchalka
- Location: Who even knows at this point...
- Contact:
Re: Disable User Input
I figured it out!
Code: Select all
show screen block_input()
screen block_input():
key "mouseup_1" action NullAction()
key "K_RETURN" action NullAction()
key "K_SPACE" action NullAction()
key "K_KP_ENTER" action NullAction()
key "joy_dismiss" action NullAction()
key "K_LCTRL" action NullAction()
key "K_RCTRL" action NullAction()
key "K_ESCAPE" action NullAction()
key "f" action NullAction()
Ooo look... a penny!
- papillon
- Arbiter of the Internets
- Posts: 4107
- Joined: Tue Aug 26, 2003 4:37 am
- Completed: lots; see website!
- Projects: something mysterious involving yuri, usually
- Organization: Hanako Games
- Tumblr: hanakogames
- Contact:
Re: Disable User Input
It's really not a good idea to do things like this.
While it is not actually a virus or a bug, it may be falsely considered one by confused users, who might then end up wasting time or losing other work trying to deal with the situation. Then, when they discover it was just a "clever trick" on your part, they will be angry.
Imagine that you scare someone into resetting their computer and in the process they lose everything else they had open. Do you think they'll think that's funny?
While it is not actually a virus or a bug, it may be falsely considered one by confused users, who might then end up wasting time or losing other work trying to deal with the situation. Then, when they discover it was just a "clever trick" on your part, they will be angry.
Imagine that you scare someone into resetting their computer and in the process they lose everything else they had open. Do you think they'll think that's funny?
Who is online
Users browsing this forum: Bing [Bot]