SOLVED: My main menu and game menu disappeared (because of splash screen mode)
Posted: Tue Nov 10, 2020 10:28 pm
Here's my existing code:
init python:
config.overlay_screens.append("keymap_screen")
init:
#this changes skip to mousewheel
$ config.keymap['rollforward'].remove('mousedown_5')
$ config.keymap['rollback'].remove('mousedown_4')
$ config.keymap['dismiss'].append('mousedown_5')
$ config.keymap['rollforward'].append('K_q')
$ config.keymap['rollback'].append('K_w')
define config.game_menu_music = "gamemenu.ogg"
screen keymap_screen():
key "K_y" action ShowMenu('history')
# Declare characters used by this game. The color argument colorizes the name of the character.
define t = Character("Twilight Sparkle", color="#800080")
define a = Character(_("[povname]"), color="#228B22")
define z = Character(_("Zecora"), color="#696969")
define l = Character(_("Lyra"), color="#98ff98")
define s = Character(_("Spike"), color="#DA70D6")
default povname = "Anonymous"
# The game starts here.
#default a = 2
#label start:
# $ a = 3
# if a == 2:
# e "Do a thing"
# else:
# e "Do another thing"
label splashscreen:
python:
if not persistent.set_volumes:
persistent.set_volumes = True
_preferences.volumes['music'] *= .40
label start:
Here you can download a existing build with the problem: https://watercolorheart.itch.io/ponyvn
init python:
config.overlay_screens.append("keymap_screen")
init:
#this changes skip to mousewheel
$ config.keymap['rollforward'].remove('mousedown_5')
$ config.keymap['rollback'].remove('mousedown_4')
$ config.keymap['dismiss'].append('mousedown_5')
$ config.keymap['rollforward'].append('K_q')
$ config.keymap['rollback'].append('K_w')
define config.game_menu_music = "gamemenu.ogg"
screen keymap_screen():
key "K_y" action ShowMenu('history')
# Declare characters used by this game. The color argument colorizes the name of the character.
define t = Character("Twilight Sparkle", color="#800080")
define a = Character(_("[povname]"), color="#228B22")
define z = Character(_("Zecora"), color="#696969")
define l = Character(_("Lyra"), color="#98ff98")
define s = Character(_("Spike"), color="#DA70D6")
default povname = "Anonymous"
# The game starts here.
#default a = 2
#label start:
# $ a = 3
# if a == 2:
# e "Do a thing"
# else:
# e "Do another thing"
label splashscreen:
python:
if not persistent.set_volumes:
persistent.set_volumes = True
_preferences.volumes['music'] *= .40
label start:
Here you can download a existing build with the problem: https://watercolorheart.itch.io/ponyvn