Page 1 of 1

ESC, right click cancel sound doesn't work.

Posted: Sun Oct 02, 2022 10:50 am
by yoyuchi
Hello, Everyone.
I made a script that returns to the title menu when I right-click and esc on Renpy's preference menu, load, and save menu. I put in cancel sound, but it doesn't work.
Here's my script.

Code: Select all

    key "mouseup_3" action [Play("sound", "sound/se/se_03.ogg"), Return()]        
    key "K_ESCAPE" action [Play("sound", "sound/se/se_03.ogg"), Return()] 
Even if I right-click in preference, Load, and Save menus, there is no sound and it return to the title menu.
Is the command different in this case?

Code: Select all

    frame:
        vbox:                               
            xsize 445
            ysize 234
            xalign .98
            yalign .98
            spacing 30

            label _(message):
                style "confirm_prompt"
                text_size 30               
                xalign 0.5           
                yalign 1.7

            hbox:
                xalign 0.1
                spacing 70
                #style_group "readback"
                
                imagebutton auto "grp/parts/quitYES_%s.png" xpos 72 ypos 32 activate_sound "sound/se/se_02.ogg" hover_sound "sound/se/se_01.ogg" action yes_action 
                imagebutton auto "grp/parts/quitNO_%s.png" xpos 79 ypos 32 activate_sound "sound/se/se_03.ogg" hover_sound "sound/se/se_01.ogg" action no_action
                
    key "mouseup_3" action [Play("sound", "sound/se/se_03.ogg"), no_action]   
    key "K_ESCAPE" action [Play("sound", "sound/se/se_03.ogg"), no_action]    
It's the same command on the confirm menu, but the cancel sound is working well on both right-click and ESC.
What's wrong? Ask for advice. Thank you so much in advance.