I have this simple intro:
Code: Select all
#start
label start:
$ tod = 4
$ tow = 1
$ renpy.music.play("audio/music/sx.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
scene intro0 with slowdis
"{i}You hear a soft, yet ever so dominant voice calling out to you...{/i}"
python:
jname = renpy.input("Your name? ({i}Default: Jimmy.{/i})")
jname = jname.strip()
if not jname:
jname = "Jimmy"
jcapname = jname.upper()
qm "[jname]..."
scene intro1 with slowdis
qm "Falling asleep during my class, huh?"
# Music randomly switches right here
scene intro2 with slowdis
qm "PLACEHOLDER"
scene home with vpunch
j "AH!"
$ renpy.music.play("audio/music/gitaroo.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
j "{i}NO! Just when I was getting to the good part!{/i}"
j "{i}God damn, my teacher is beautiful!{/i}"
j "{i}I wish dreams like those could be real..{/i}"
jump home
return
Code: Select all
#home
label home:
if tod == 4:
call screen home_m
if tod == 3:
call screen home_d
if tod == 2:
call screen home_ev
if tod == 1:
call screen home_n
if tod < 0:
$ tod = 0
if tod == 0:
call screen home_n
pause
jump home
Code: Select all
screen home_m():
$ renpy.music.play("audio/music/gitaroo.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
imagemap:
ground "scenes/home/home.png"
use overlay
imagebutton auto "scenes/home/homesofa_%s.png" focus_mask True
imagebutton auto "scenes/home/homepc_%s.png" focus_mask True
imagebutton auto "scenes/home/homedoor1_%s.png" focus_mask True action [Hide("home_m"), Jump("street")]
imagebutton auto "scenes/home/homedoor2_%s.png" focus_mask True
imagebutton auto "scenes/home/homebed_%s.png" focus_mask True action [Hide("home_m"), Jump("homebed")]
imagebutton auto "scenes/0icons/settingsicon_%s.png" focus_mask True
imagebutton auto "scenes/0icons/mapicon_%s.png" focus_mask True action [Hide("home_m"), Jump("city")]
imagebutton auto "scenes/0icons/timeicon_%s.png" focus_mask True action [Hide("home_m"), SetVariable("tod", tod-1), Jump("home")]
screen home_d():
$ renpy.music.play("audio/music/gitaroo.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
imagemap:
ground "scenes/home/home.png"
use overlay
imagebutton auto "scenes/home/homesofa_%s.png" focus_mask True
imagebutton auto "scenes/home/homepc_%s.png" focus_mask True
imagebutton auto "scenes/home/homedoor1_%s.png" focus_mask True action [Hide("home_d"), Jump("street")]
imagebutton auto "scenes/home/homedoor2_%s.png" focus_mask True
imagebutton auto "scenes/home/homebed_%s.png" focus_mask True action [Hide("home_d"), Jump("homebed")]
imagebutton auto "scenes/0icons/settingsicon_%s.png" focus_mask True
imagebutton auto "scenes/0icons/mapicon_%s.png" focus_mask True action [Hide("home_d"), Jump("city")]
imagebutton auto "scenes/0icons/timeicon_%s.png" focus_mask True action [Hide("home_d"), SetVariable("tod", tod-1), Jump("home")]
screen home_ev():
$ renpy.music.play("audio/music/gitaroo.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
imagemap:
ground "scenes/home/home_ev.png"
use overlay
imagebutton auto "scenes/home/homesofa_%s.png" focus_mask True
imagebutton auto "scenes/home/homepc_%s.png" focus_mask True
imagebutton auto "scenes/home/homedoor1_%s.png" focus_mask True action [Hide("home_ev"), Jump("street")]
imagebutton auto "scenes/home/homedoor2_%s.png" focus_mask True
imagebutton auto "scenes/home/homebed_%s.png" focus_mask True action [Hide("home_ev"), Jump("homebed")]
imagebutton auto "scenes/0icons/settingsicon_%s.png" focus_mask True
imagebutton auto "scenes/0icons/mapicon_%s.png" focus_mask True action [Hide("home_ev"), Jump("city")]
imagebutton auto "scenes/0icons/timeicon_%s.png" focus_mask True action [Hide("home_ev"), SetVariable("tod", tod-1), Jump("home")]
screen home_n():
$ renpy.music.play("audio/music/gitaroo.mp3", loop=True, fadeout=0.2, fadein=0.2, if_changed=True)
imagemap:
ground "scenes/home/home_n.png"
use overlay
imagebutton auto "scenes/home/homesofa_%s.png" focus_mask True
imagebutton auto "scenes/home/homepc_%s.png" focus_mask True
imagebutton auto "scenes/home/homedoor1_%s.png" focus_mask True action [Hide("home_n"), Jump("street")]
imagebutton auto "scenes/home/homedoor2_%s.png" focus_mask True
imagebutton auto "scenes/home/homebed_%s.png" focus_mask True action [Hide("home_n"), Jump("homebed")]
imagebutton auto "scenes/0icons/settingsicon_%s.png" focus_mask True
imagebutton auto "scenes/0icons/mapicon_%s.png" focus_mask True action [Hide("home_n"), Jump("city")]
imagebutton auto "scenes/0icons/timeicon_%s.png" focus_mask True action [Hide("home_n"), SetVariable("tod", tod-1), Jump("home")]