Showing Logo Before Game Starts? [SOLVED]

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
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Showing Logo Before Game Starts? [SOLVED]

#1 Post by quacksapup »

Hi all,

I was wondering how I can show my productions logo before my game menu shows up? Like how SakeVisual does it before their games. If anyone can help me with this, that'd be great!

Thanks,

-Q
Last edited by quacksapup on Fri May 10, 2013 11:29 pm, edited 1 time in total.

User avatar
ShippoK
Veteran
Posts: 348
Joined: Wed Mar 28, 2012 8:59 pm
Projects: Eyes of Gold (In-Progress)
Organization: (Red Moon)
Location: Glorious Nippon (A.K.A the USA)
Contact:

Re: Showing Logo Before Game Starts?

#2 Post by ShippoK »

Something like this.
Place this before 'label start:'

Code: Select all

label splashscreen:
    $ renpy.pause(0)
    show logosample
    with Pause(3.0)
    
    return
Better example.

Code: Select all

label splashscreen:
    $ renpy.pause(0)
    with Pause(0.5)
    
    show logosample
    with slowdissolve
    with Pause (0.5)
    play sound "giggle.mp3"
    with Pause(3.0)
    
    hide logosample
    with slowdissolve
    with Pause(1.5)
    
    return
Hope that helps.
Much Appreciated for those who took the Survey!

Image Image
Eyes of Gold [BL (Suspense) (+18)] IN-PROGRESS
Alternate Online [(Friendship) (+10)] ON-HOLD
DeviantART• •[Honest critique] - 'Honesty is its own reward.'

User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Re: Showing Logo Before Game Starts?

#3 Post by quacksapup »

ShippoK wrote: Better example.

Code: Select all

label splashscreen:
    $ renpy.pause(0)
    with Pause(0.5)
    
    show logosample
    with slowdissolve
    with Pause (0.5)
    play sound "giggle.mp3"
    with Pause(3.0)
    
    hide logosample
    with slowdissolve
    with Pause(1.5)
    
    return
Hope that helps.
Huzzah! It works! Is there a way to make it fade into the menu? Because the game menu appears too abruptly for my taste.

Thanks so much,
-Q

pwisaguacate
Veteran
Posts: 356
Joined: Mon Mar 11, 2013 11:03 pm
Contact:

Re: Showing Logo Before Game Starts?

#4 Post by pwisaguacate »

quacksapup wrote:Huzzah! It works! Is there a way to make it fade into the menu? Because the game menu appears too abruptly for my taste.

Thanks so much,
-Q
Just dissolve or fade into your main menu background (set mm_root to same file in options.rpy):

Code: Select all

image bg main_menu = "main_menu.png"
image bg splashscreen = "splashscreen.png"

label splashscreen:
    show bg splashscreen
    with dissolve
    $ renpy.pause(1.0)
    show bg main_menu
    with fade
    
    return

User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Re: Showing Logo Before Game Starts?

#5 Post by quacksapup »

pwisaguacate wrote:Just dissolve or fade into your main menu background (set mm_root to same file in options.rpy):

Code: Select all

image bg main_menu = "main_menu.png"
image bg splashscreen = "splashscreen.png"

label splashscreen:
    show bg splashscreen
    with dissolve
    $ renpy.pause(1.0)
    show bg main_menu
    with fade
    
    return
I'm using

Code: Select all

label splashscreen:
    
    show logosample
    with dissolve
    play sound "sfx/logo.mp3"
    with Pause(5.8)

    hide logosample
    with dissolve
    show bg main_menu
    with dissolve
    
    return
But for some reason the transition to the main menu doesn't work. I took out those extra pauses because it showed a transparent screen, and I didn't want that. This code I showed you works, but the only thing that doesn't work is the bg main_menu transition. Help???

pwisaguacate
Veteran
Posts: 356
Joined: Mon Mar 11, 2013 11:03 pm
Contact:

Re: Showing Logo Before Game Starts?

#6 Post by pwisaguacate »

quacksapup wrote:

Code: Select all

label splashscreen:
    
    show logosample
    with dissolve
    play sound "sfx/logo.mp3"
    with Pause(5.8)

    hide logosample
    with dissolve
    show bg main_menu
    with dissolve
    
    return
This code I showed you works, but the only thing that doesn't work is the bg main_menu transition. Help???
I tested the code you pasted, and it worked perfectly for me. Make sure you aren't clicking during the splash screen and that you defined bg main_menu in script.rpy and set mm_root to the same one in options.rpy (it's near the bottom of "Themes" section).

User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Re: Showing Logo Before Game Starts?

#7 Post by quacksapup »

pwisaguacate wrote: I tested the code you pasted, and it worked perfectly for me. Make sure you aren't clicking during the splash screen and that you defined bg main_menu in script.rpy and set mm_root to the same one in options.rpy (it's near the bottom of "Themes" section).
I get an invalid syntax for changing mm_menu to bg main_root. I don't think that's what you meant though... sorry, I'm a newbie. I know I'm not supposed to click while the splash screen is in play, so it's something to do with "bg main_menu in script.rpy and set mm_root to the same one in options.rpy". I'm not quite sure what you mean... :(

pwisaguacate
Veteran
Posts: 356
Joined: Mon Mar 11, 2013 11:03 pm
Contact:

Re: Showing Logo Before Game Starts?

#8 Post by pwisaguacate »

Sorry if I was being unclear.

Code: Select all

mm_root = "main_menu.png" # NOT " mm_woot = bg main_menu "!

User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Re: Showing Logo Before Game Starts?

#9 Post by quacksapup »

pwisaguacate wrote:Sorry if I was being unclear.

Code: Select all

mm_root = "main_menu.png" # NOT " mm_woot = bg main_menu "!

Nah, I think it's my lack of experience. I finally get what you were trying to say now. :) I tried what you instructed, and it works! Thank you so very much! :D

Post Reply

Who is online

Users browsing this forum: Google [Bot]