ESC, right click cancel sound doesn't work.

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
yoyuchi
Regular
Posts: 61
Joined: Sat Jul 09, 2022 1:39 pm
Contact:

ESC, right click cancel sound doesn't work.

#1 Post 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.

Post Reply

Who is online

Users browsing this forum: Ocelot