I'm looking to update my games with a gore filter. I don't know what to do.
I want the gore filter option to show up at the beginning of the game and in settings. How can I do this?
How to implement a gore filter?
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.
Re: How to implement a gore filter?
Check this: https://patreon.renpy.org/custom-preferences.html
Example
Example
Code: Select all
default persistent.gore_enable = True
label start:
#Adding gore filter option to show up at the beginning
menu:
"Gore?"
"Yes":
$ persistent.gore_enable = True
"No":
$ persistent.gore_enable = False
Code: Select all
#screens.rpy
screen preferences():
....
vbox:
style_prefix "check"
label _("Options")
textbutton _("Gore") action ToggleField(persistent, "gore_enable")
Code: Select all
label some_scene:
if persistent.gore_enable:
#Gore scene
else:
#Vanilla scene
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]