Page 1 of 1

Screen Before Main Menu on New GUI

Posted: Sat Oct 14, 2017 3:22 am
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:

Re: Screen Before Main Menu on New GUI

Posted: Sat Oct 14, 2017 9:22 am
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

Re: Screen Before Main Menu on New GUI

Posted: Mon Oct 30, 2017 3:26 am
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.