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.
picofarad
Newbie
Posts: 1 Joined: Fri Feb 07, 2020 6:03 am
Contact:
#1
Post
by picofarad » Fri Feb 07, 2020 6:08 am
I'm trying to play a blip sound effect while a character is speaking and I used part of the renpy code here
https://www.renpy.org/doc/html/characte ... t=callback
Code: Select all
init python:
def voicefont(event, **kwargs):
if event == "show_done":
renpy.sound.play("sf_beep.wav")
elif event == "slow_done":
renpy.sound.stop()
define rh = Character("Rhodes", callback=voicefont)
I'm getting an error that my sound file "sf_beep.wav" cannot be found. I put it in the audio folder of my game project.
Per K Grok
Miko-Class Veteran
Posts: 882 Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:
#2
Post
by Per K Grok » Fri Feb 07, 2020 4:03 pm
picofarad wrote: ↑ Fri Feb 07, 2020 6:08 am
I'm trying to play a blip sound effect while a character is speaking and I used part of the renpy code here
https://www.renpy.org/doc/html/characte ... t=callback
Code: Select all
init python:
def voicefont(event, **kwargs):
if event == "show_done":
renpy.sound.play("sf_beep.wav")
elif event == "slow_done":
renpy.sound.stop()
define rh = Character("Rhodes", callback=voicefont)
I'm getting an error that my sound file "sf_beep.wav" cannot be found. I put it in the audio folder of my game project.
You probably have to put in the folder name too
i.e.
renpy.sound.play("audio/sf_beep.wav")
Users browsing this forum: No registered users