Adding "Tag Menu" silences sound effect when showing 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
User avatar
Duskylli
Regular
Posts: 175
Joined: Wed Mar 27, 2013 12:48 pm
Completed: The Mishka Effect, Fairly Dangerous.
Projects: Palette Swap
Contact:

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

#1 Post 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")  

philat
Eileen-Class Veteran
Posts: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

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

#2 Post by philat »

Pretty sure using tag means the event is replace/replaced, rather than show. https://www.renpy.org/doc/html/screens.html#on

Post Reply

Who is online

Users browsing this forum: Kocker, Semrush [Bot], ZianRiyone