Screen warning beginning in the game

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.
Post Reply
Message
Author
User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Screen warning beginning in the game

#1 Post by isobellesophia »

Hi,

i just want help of making a warning screen before starting the game.
Warns, when the player allows the 'PG Rated', if the player chooses neither 'yes' or 'no', and it can be changed later on in the preference screen.

When player chooses yes, the Pg rated will be allowed
if no, then Pg rated will be blocked.

Sorry for the bad english :)

This is for my screens.rpy, basically in the preference screen

Code: Select all

vbox:
style_prefix "radio"
label _("PG rated")
textbutton _("Block") action SetField(persistent, "badword", 0)
textbutton _("Allow") action SetField(persistent, "badword", 1)
Can somebody help me, or give me a code for example?
Thanks.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Screen warning beginning in the game

#2 Post by wyverngem »

Use the splashscreen label.

Code: Select all

label splashscreen: # Shows after load of game.
    call screen my_screen
    return

label start:
    #"Game starts here."

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Screen warning beginning in the game

#3 Post by isobellesophia »

wyverngem wrote: Sat Feb 16, 2019 10:26 am Use the splashscreen label.

Code: Select all

label splashscreen: # Shows after load of game.
    call screen my_screen
    return

label start:
    #"Game starts here."
Ah, thanks for that, sorry for being an idiot.

(Btw i found out how to allow or disabling the warning. :mrgreen: )
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Screen warning beginning in the game

#4 Post by wyverngem »

You don't have to apologize. We were all new once.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Alex