Screen Before Main Menu on New GUI

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
adeRuZet
Newbie
Posts: 13
Joined: Wed Oct 04, 2017 11:23 am
Github: aderuZet
Contact:

Screen Before Main Menu on New GUI

#1 Post by adeRuZet »

hi, first in first, im sorry if i post my first thread in a wrong forum. please tell me if i do wrong.

ok, lets jump to the problem. i want to make a screen before main menu appear (like 'press spacebar to start' in arcade game).
but i am not an expert in python nor renpy. i just know the basic code like splashscreen, show, add, define, scene, and other basic tag.
so i dive into this forum and found these 2 that might help me
viewtopic.php?f=8&t=22483&p=466922#p466922
and
viewtopic.php?f=8&t=36412&p=466923#p466923

but it seems to be like it was the script for the old GUI. now i already to set my project in new GUI.
can anybody give me an example code for this? i dont want to re-create the new project using Legacy GUI.

pardon my bad English, i am not a native. :oops:

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Screen Before Main Menu on New GUI

#2 Post by Divona »

Code: Select all

screen splash():
    add "#000"
    text "Press Spacebar to Start" xalign 0.5 yalign 0.5

    key "K_SPACE" action MainMenu(confirm=False)

label splashscreen:
    call screen splash
Completed:
Image

adeRuZet
Newbie
Posts: 13
Joined: Wed Oct 04, 2017 11:23 am
Github: aderuZet
Contact:

Re: Screen Before Main Menu on New GUI

#3 Post by adeRuZet »

Thank you. It work perfectly.

But this thread seems have a placement issue, since i post this on the wrong section. I manage to delete or move it to where it belongs to.

Anyway, once again, thank you very much.

Post Reply

Who is online

Users browsing this forum: Google [Bot]