- Mar 30, 2019
- 215
- 207
Hello!
I don't have much idea about Renpy so I need some help.
There is a game that had music and sounds but in its last update the developer has decided not to add it, but in my opinion I think it is missing that sound and music.
I have tried to copy and paste from their code to add those sounds and music to all of the new content, but they don't work and I don't know why.
The first part of the game is in the script.rpy and the content that does not contain music is in another rpy called 0.9.rpy.
In the script.rpy, the developer uses the
Thanks.
I don't have much idea about Renpy so I need some help.
There is a game that had music and sounds but in its last update the developer has decided not to add it, but in my opinion I think it is missing that sound and music.
I have tried to copy and paste from their code to add those sounds and music to all of the new content, but they don't work and I don't know why.
The first part of the game is in the script.rpy and the content that does not contain music is in another rpy called 0.9.rpy.
In the script.rpy, the developer uses the
play music "audio/xxxxxx.mp3"
and the stop music
. I am trying to use those same commands in 0.9.rpy but I get an error saying:I don't know how I could fix this, can someone help me?I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/0.9.rpy", line 1217, in script
play music "audio/tension.mp3"
Exception: Sayer 'play' is not defined.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/0.9.rpy", line 1217, in script
play music "audio/tension.mp3"
File "renpy/ast.py", line 680, in execute
who = eval_who(self.who, self.who_fast)
File "renpy/ast.py", line 574, in eval_who
raise Exception("Sayer '%s' is not defined." % who)
Exception: Sayer 'play' is not defined.
Thanks.
Last edited: