Adding "Tag Menu" silences sound effect when showing menu.
Posted: Wed Apr 06, 2016 1:34 pm
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?
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")