button sounds broken? [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
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

button sounds broken? [solved]

#1 Post by Scribbles »

Converted files to .ogg and they work now -_-


I can not get sounds to play on buttons no matter what I try. I have tested the files, turned my volume to 100, and tried several different code things and nothing works???

I've tried:

Code: Select all

textbutton "TEST" action Play("sound", "audio/sfx/start.wav") ## not even this works???
I've also tried:

Code: Select all

textbutton "TEST" action [Play("sound", "audio/sfx/start.wav"), Notify("hi")] 

Code: Select all

style main_menu_button:
    activate_sound "audio/sfx/start.wav"
    hover_sound "audio/sfx/start.wav"

Code: Select all

imagebutton auto "gui/main_menu/gallery_%s.png" focus_mask True action ShowMenu('gallery') activate_sound "audio/sfx/start.wav" hover_sound "audio/sfx/start.wav" alt "extras menu"

Code: Select all

define config.has_sound = True
define config.has_music = True
define config.has_voice = True
Sound, Voice, and music are all set to True.

Sound, voice, and music plays just fine normally inside the game. I have all three in the game and they all play fine. But not when I try to attach it to a button??

I've tried them in my imagebuttons, I made a textbutton to test. Renpy is up to date, I can't think of anything else????

Are button sounds broken for some reason? Or is there a new way to get the sounds to play that I don't know about or can't find?[/s]
Image - Image -Image

Post Reply

Who is online

Users browsing this forum: No registered users