[RE]Activate_sound is not played in confirm menu of custom load menu.

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:

[RE]Activate_sound is not played in confirm menu of custom load menu.

#1 Post by yoyuchi »

Hello, everyone.
I don't get reply to the question, so I post the question again.
I made save, load menu using "hotspot", and activate_sound and hover_sound inserted in each slot and confirm menu.
Save menu works normally with sound in slot and confirm menu.
But, In "load", click "YES" activate_sound is not played at the confirm menu. "NO" activate_sound is nomal.

Code: Select all

        hotspot (140, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(1, confirm = False)):   
            use load_save_slot(number=1) 
        hotspot (613, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(2, confirm = False)):
            use load_save_slot(number=2) 
        hotspot (1089, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(3, confirm = False)):
            use load_save_slot(number=3) 
        hotspot (140, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(4, confirm = False)):
            use load_save_slot(number=4) 
        hotspot (613, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(5, confirm = False)):
            use load_save_slot(number=5) 
        hotspot (1089, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(6, confirm = False)):
            use load_save_slot(number=6) 

Code: Select all

screen confirm(message, yes_action, no_action):    
    modal True
    zorder 500
    style_prefix "confirm"
    add "grp/parts/ground.png"
    
    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 41 activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" action yes_action 
                imagebutton auto "grp/parts/quitNO_%s.png" xpos 79 ypos 41 activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" action no_action

I inserted each sound into the "load" and "confirm menu"'s script, but the activate_sound when I click "yes" is not played.
There seems to be no problem with script coding. All other menus and confirm windows also play sound normally. Only confirm window of load menu does not play "yes" sound.I just can't figure out how to solve it.
Any advice will be of great help. I'm eagerly waiting for your help.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]