Can't get music to play

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
Rehelm
Newbie
Posts: 1
Joined: Tue Mar 29, 2016 12:11 pm
Contact:

Can't get music to play

#1 Post by Rehelm »

I'm rather knew to creating visual novels. In fact, I've really only been playing around with the software and the tutorial on the Internet. My question, though, is I can not get music to play. I'm not really sure where to put the "play music "music.mp3"" code. Here is my code below. Just remember, as of the moment I'm just goofing off with it.

image bg meadow = "meadow.jpg"
image be uni = "uni.jpg"

image sylvie smile = "sylvie_smile.jpg"
image sylvie surprised = "sylvie_surprised.png"

define s = Character ('Sylvie' , color="#c8ffc8")
define m = Character ('Me' , color="#c8c8ff")

label start:
play music "open.mp3"
scene bg meadow
show sylvie smile at right

"I'll ask her..."

m "Um... will you..."
m "Will you be my artist for a visual novel?"

show sylvie surprised at left

"Silence."
"She is shocked, and then..."

show sylvie smile at center

s "Sure, but what is a \"visual novel?\""

I would appreciate your help. Thanks in advance.

Oh, and I'm not sure if this is relevant but I am running this all on Linux.

alex.theoto
Regular
Posts: 55
Joined: Sun Sep 13, 2015 3:11 pm
Location: Greece
Contact:

Re: Can't get music to play

#2 Post by alex.theoto »

Please fix your post and use 'code' tags. By this we can see your code better.

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: Can't get music to play

#3 Post by vollschauer »

Volume is on?

Code: Select all

label start:
    play music "open.mp3"
    queue music "open.mp3"

User avatar
MoonByte
Regular
Posts: 173
Joined: Thu Mar 24, 2016 9:18 pm
Completed: Shine (RPG Maker), Heroes (RPG Maker), Lantern Bearer (RPG Maker), Loop the Loop (Unity), Other Stars (Unreal), Sky Eye (RPG Maker), WIN Delivery & Fateful (Ren'Py)
Projects: Weird Is Normal (Ren'Py)
Location: Germany
Contact:

Re: Can't get music to play

#4 Post by MoonByte »

Is your music in a subfolder? Because if yes, then you need to tell Ren'Py the path.

Code: Select all

label start:
    play music "Music/open.mp3"

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]