Page 1 of 1

Is it possible to create a "don't show screen" option?

Posted: Tue Jan 29, 2019 9:44 am
by Nanahs
I programmed my game to show screens with messages like "Merry Christmas", "Happy New Year", etc.

That's easy to create a button with "toggle screen" function to show and hide. But as soon the the person clicked on that label again, the screen would appear again. And the person would have to click the button to hide it agan.

So I was wondering, is it possible to create an option like "don't show me messages"?

And when chosen, this function would hide "screen crhistmas, screen newyears, screen birthday", etc.

And another one "show me messages" that would display those screens if the person wants to?

Everything I could think about was the "toggle screen" function, but the game wouldn't "remember/save". Do you know what I mean? :lol:

So, basically two buttons. One to enable and another one to disable "screen crhistmas, screen newyears, screen birthday".

Thanks.

Re: Is it possible to create a "don't show screen" option?

Posted: Tue Mar 26, 2019 5:10 am
by Kia
yes, you can have a persistent variable that is checked before showing the screen: https://www.renpy.org/doc/html/persistent.html

Code: Select all

if persistent.msgs:
	show screen masages...