Page 1 of 1

Choice Menu Sound Effects

Posted: Mon Apr 23, 2018 8:38 pm
by mellowidol
I found a tutorial about how to play a sound when you select a choice in the choice menu, and it worked perfectly. However, I also want to have an effect when I hover over/scroll through choices. I've tried to find it elsewhere, but it seems to be outdated. That or I just can't find where to edit it.

For reference, I found an "outdated" tutorial here: viewtopic.php?t=23938

They gave:

Code: Select all

button:
    action [action, Play("sound", "se/open.ogg")]
    hovered Play("sound", "se/select.ogg")
    style "menu_choice_button"

as the solution, but I can't seem to find where "button" is in the screen.rpy file.

Any help would be appreciated, and let me know if I posted incorrectly as this is my first post (and I'm new to this forum.)

Re: Choice Menu Sound Effects

Posted: Mon Apr 23, 2018 9:06 pm
by philat
It's the choice screen in screens.rpy. It's been changed to a textbutton but you can still add hovered attributes.