Adding sound effects after the dialogue

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
brystfire
Newbie
Posts: 14
Joined: Thu Sep 12, 2013 3:59 am
Projects: Let's Learn Geometry
Contact:

Adding sound effects after the dialogue

#1 Post by brystfire » Fri Sep 20, 2013 10:25 am

Hi!

I have another question.
Please tell me how to add a sound effect every after a dialogue. I think it will be a cool effect to have in a game.
I want it to play /to be triggered after clicking every dialogue.
I want to add a click sound when they are done reading.
Pardon me about the redundancy these :) i don't know if i said it right so i said in it many ways.





You're answers will be greatly appreciated :)

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Adding sound effects after the dialogue

#2 Post by Elmiwisa » Fri Sep 20, 2013 10:38 am

Locate the code for the screen "say" in screens.rpy.
Add this line into screen say block

Code: Select all

on "hide" action Play("sound","annoying_sound_that_will_drive_people_crazy.mp3")
Where annoying_sound_that_will_drive_people_crazy.mp3 is the aptly named sound file you want to play.

User avatar
brystfire
Newbie
Posts: 14
Joined: Thu Sep 12, 2013 3:59 am
Projects: Let's Learn Geometry
Contact:

Re: Adding sound effects after the dialogue

#3 Post by brystfire » Sat Sep 21, 2013 8:37 am

Thanks i'll try it :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot]