'Now Playing' popup window[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
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

'Now Playing' popup window[solved]

#1 Post by DannyGMaster »

I want to make a little window that pops up in a corner of the screen whenever a song starts playing, saying tha name of the song and the composer, my game has more than one composer for the music,
I believe it's fairly doable with some python code but i'm still learning Python and I don't know how
to make it work in Renpy. I was wondering if this was already made by someone.

Sorry if this seems a noob question. Advice is appreciated.
Last edited by DannyGMaster on Thu Jun 08, 2017 2:23 pm, edited 1 time in total.

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: 'Now Playing' popup window

#2 Post by gas »

What you need for is to use the renpy.notify() function.
When the music begin, use that function to notify the user. Something like:

Code: Select all

play music "I believe in a thing called love.mp3"
$ renpy.notify("Now playing: I believe in a thing called love - The Darkness")
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Thanks!

#3 Post by DannyGMaster »

Thank you so much, this will do!

Post Reply

Who is online

Users browsing this forum: No registered users