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.
I am tracking experience points in a small overlay. I'm wanting to occasionally turn it off during game play for specific dialogue purposes (like during a tutorial). I don't know what the best way would be to mark it as hidden.
philat wrote:I'm confused. Are you asking how to set showexperience to False?
$ showexperience = False should work fine...?
Essentially yes but I would want to do it within the story itself and not in the initialization section above.
I'm basically wanting to hide the portion of the interface that would otherwise show experience points ( and later on money). When I put the code in as you typed it, seemingly nothing happens. The experience points continue to display.
If I go to the code above the start of the game and change it to false it will turn it off.
I'm trying to create a toggle that I can refer to each time I want to turn it off or back on again.
I don't know if I explained any better this time or not.