Basically, I have a screen thats called before the main menu itself ("fakestart"), which is supposed to play a happy song. Then, after the player clicks on the screen, a screen crack effect plays, and the music is supposed to change into a darker one.
Here's my opening.rpy.
Code: Select all
label splashscreen():
scene black
$ renpy.pause(2.5, hard=True)
# greet, add more voice lines later
$ hour=time.strftime("%H",time.gmtime())
$ hour=int(hour)
if hour >8 and hour <22:
play sound "audio/voice/welcome home.mp3"
else:
play sound "audio/voice/komi hey.mp3"
#back to logo
show logo at transform_logo
$ renpy.pause(5, hard=True)
hide logo
$ renpy.pause(2, hard=True)
##### This is where I'd like the happy song to start playing! ######################
#play music "audio/bgm/fake title.mp3"
return
## Press to Start Screen
screen fakestart():
tag menu
if not persistent.ch5:
add "images/cg/initial menu.png"
#if persistent.ch6:
#add "backgroundch5.png"
#if persistent.ch7:
#add "backgroundch7.png"
#if persistent.ch8:
#add "backgroundch8.png"
#if persistent.ch9:
#add "initial menu.png"
add "images/overlays/start.png" xalign 0.5 yalign 0.5 at transform_blink
##### I want the player to click the screen, stop the happy music, and play the creepy one.
### "audio/bgm/title screen.mp3"
##### But I can't make it work :(
button:
xysize (config.screen_width, config.screen_height)
activate_sound "audio/se/crash.ogg"
action Show("main_menu", transition=shatter)
label before_main_menu():
call screen fakestart
$ renpy.pause(1.5, hard=True)
I've tried messing with stuff like audio channels to turn off the happy music, but that just reverts the problem - darker plays while happy doesn't at all. I've also tried different variations of the opening code, placing the music play part in different locations in the code... still nothing.
Can someone help me out? This is driving me insane! lol