[SOLVED] Allowing music in splash to continue into menu

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
PhZXgames
Regular
Posts: 49
Joined: Fri Oct 14, 2016 2:12 pm
Completed: Character Creation Frame
Projects: RWBY Dawnfall
Organization: PhZX Games
Skype: live:phzxgames
Location: Minnesota, USA
Contact:

[SOLVED] Allowing music in splash to continue into menu

#1 Post by PhZXgames » Wed Mar 01, 2017 10:59 pm

So I am making a game for NanoRenO and I've run into an issue. I want to play a music track on a splash screen that happens before the "Main Menu" but it cuts off at the main menu. I understand why, but is there a way to prevent that? Also "Music" normally repeats so would that be affected or no? The track itself is 53 seconds, if that's important at all.

Here's what I have for a splash

Code: Select all

label splashscreen:
    
    scene black
    with Pause(1)
    
    play music "Fantasy_Game_Background.mp3"
    
    show text "{size=100}{color=#ffffff}Made with Ren\'Py{/color}{/size}"
    with dissolve 
    with Pause(2)
    
    hide text with dissolve
    with Pause(1)
    
    show text "{size=100}{color=#ffffff}PhZX Games presents...{/color}{/size}"
    with dissolve 
    with Pause(2)
    
    hide test with dissolve
    with Pause(1)
    
    stop sound fadeout(3.0)
    
    return

label start:
Thanks!
Last edited by PhZXgames on Thu Mar 02, 2017 12:02 am, edited 1 time in total.
"Don't Explode!"
-me

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Allowing music in splash to continue into menu

#2 Post by Imperf3kt » Wed Mar 01, 2017 11:42 pm

I don't recall if I ever ran into this issue, but logically, it should play the same track, if you set the main menu music to the same song.

Ren'Py will see it already playing and should just continue without interruption.

Do you need a splashscreen? Are you able to put your current splashscreen into a presplash ?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
PhZXgames
Regular
Posts: 49
Joined: Fri Oct 14, 2016 2:12 pm
Completed: Character Creation Frame
Projects: RWBY Dawnfall
Organization: PhZX Games
Skype: live:phzxgames
Location: Minnesota, USA
Contact:

Re: Allowing music in splash to continue into menu

#3 Post by PhZXgames » Thu Mar 02, 2017 12:01 am

@Imperf3kt
nah thanks, what I've got I like. And I originally thought ren'py would just start the track over if I set it to menu theme, and it would interrupt the flow. thanks though!
"Don't Explode!"
-me

Post Reply

Who is online

Users browsing this forum: OddTillTheEnd