Code: Select all
on "replace" action Play("music", "bgm/M01.ogg")
I tried something like that but it doesn't seem to work:
Code: Select all
if not main_menu:
on "replace" action Play("music", "bgm/M01.ogg")
Code: Select all
screen main_menu:
tag menu
add "images/gui/gui_ground.png"
add "images/gui/title.png"
imagemap:
idle "images/gui/main_menu_idle.png"
hover "images/gui/main_menu_hover.png"
selected_idle "images/gui/main_menu_selected.png"
selected_hover "images/gui/main_menu_selected.png"
alpha True
hotspot(622,325,150,45) action Start()
hotspot(622,375,150,45) action ShowMenu("load")
hotspot(622,425,150,45) action ShowMenu("extra")
hotspot(622,475,150,45) action ShowMenu("options")
hotspot(622,525,150,45) action Quit(confirm=True)
on "replace" action Play("music", "bgm/M01.ogg")