There are two things I'm needing it to do that I haven't been able to figure out on my own (and google has done little to help me find the information or even the appropriate place to ask it.) Hopefully one of you kind code minded folks can help me out. Thanks in advance if you take the time to do so.
The first thing I need it to be able to do is play an ambient track and a music track at the same time, while displaying the text for both of them. I've tried what the code suggests and made a separate channel for ambient sounds. Then used this phrasing to play each item.
Code: Select all
$ play_music(inside_night, channel='ambient')
$ play_music(home)
Code: Select all
def play_amb(file, channel='ambient', fadein=0.0, fadeout=0.0):
renpy.music.play(file, fadein=fadein, fadeout=fadeout)
if persistent.sound_captions:
renpy.notify (ambtext + amb_list[file])
Code: Select all
ambtext = _("Ambient: ")
Code: Select all
amb_list = {
elevator : _("An elevator is moving."),
Code: Select all
$ play_amb(inside_night)
$ play_music(home)
The second thing I need it to be able to do is display Kanji (rather than empty boxes) when it shows the title of a song. I've attempted to compensate for this with a special font just for Japanese (that I also use in my credits screen, where it works as intended.)
Code: Select all
main : _("{font=NotoJp.otf}ゆきうさぎ{/font} (Mountain Rabbit) - musmus.main.jp")
Also, I apologize if this sort of thing has been asked before. I just couldn't find it anywhere when I searched the forums and google. (Also if this post looks familiar, I had it in the wrong forum at first. I've reposted it here and emptied the original so as to not have doubles.)