Page 1 of 1

Adding "Tag Menu" silences sound effect when showing menu.

Posted: Wed Apr 06, 2016 1:34 pm
by Duskylli
Hi! I have a letters inventory screen where you can click on image buttons to read different letters. When the button is clicked it used to play a page flip sound effect.

The SE played fine, but I had to add "tag menu" to the code so that the player wouldn't get stuck in the letter when accessed through the preferences navigation menu from the title screen. But now the SE isn't played anymore. Any ideas?

Code: Select all

screen Open_letter_1:
    tag menu
    on "show" action Play("sound", "Audio/sfx/Letter.wav")
    add "Letter/open_letter_1.jpg"
    add "Letter/open_letter_1_text.png" xpos 146 ypos 45
    imagebutton auto "Letter/game_menu_return_%s.png" xpos 1152 ypos 10 focus_mask True action ShowMenu("letters")  

Re: Adding "Tag Menu" silences sound effect when showing men

Posted: Thu Apr 07, 2016 4:05 am
by philat
Pretty sure using tag means the event is replace/replaced, rather than show. https://www.renpy.org/doc/html/screens.html#on