Additional "aftersplash" screen with imagemap causing errors
Posted: Wed Jul 10, 2019 3:48 pm
Hello, in my renpy game I've added additional screen with age verification imagemap. If user confirms s/he's adult, the game proceeds to main_menu screen. If not, it quits. The screen shows up automatically after splashscreen. However, it causes many problems. Let me point them out.
- main_menu music (set up through options.rpy) doesn't play at all. In-game music works just fine.
- When I start my game (either by Start() or ShowMenu('start')), a slim bar at the bottom of the screen (with back, prefs, quit etc buttons) doesn't show up. It's just not here.
- While game scripts runs, I cannot open game_menu/quick_menu by clicking Escape button as it normally works.
Clearly age verification screen is causing all of this mishap. Please help me resolve this, I'm stuck. I can provide quality memes as a reward.
Splashscreen (in script.rpy)
Age verification screen (in screens.rpy)
Main menu screen
- main_menu music (set up through options.rpy) doesn't play at all. In-game music works just fine.
- When I start my game (either by Start() or ShowMenu('start')), a slim bar at the bottom of the screen (with back, prefs, quit etc buttons) doesn't show up. It's just not here.
- While game scripts runs, I cannot open game_menu/quick_menu by clicking Escape button as it normally works.
Clearly age verification screen is causing all of this mishap. Please help me resolve this, I'm stuck. I can provide quality memes as a reward.
Splashscreen (in script.rpy)
Code: Select all
label splashscreen:
show splash image with fadesplashscreen
with Pause(3.0)
hide presplash with dissolve
call screen constent with dissolve
Code: Select all
screen constent():
imagemap:
idle "18idle.png"
hover "18hover.png"
ground "18ground.png"
hotspot (x,x,x,x) action ShowMenu("main_menu")
hotspot (x,x,x,x) action Quit(confirm=None)
Code: Select all
screen main_menu():
tag menu
imagemap:
idle "mainmenuidle.png"
hover "mainmenuhover.png"
ground "mainmenuground.png"
hotspot (x,x,x,x) action ShowMenu('start')
hotspot (x,x,x,x) action ShowMenu('load')
hotspot (x,x,x,x) action ShowMenu('preferences')
hotspot (x,x,x,x) action ShowMenu('about')
hotspot (x,x,x,x) action ShowMenu('help')
hotspot (x,x,x,x) action Quit('quit')
hotspot (x,x,x,x) action OpenURL("https://xxxx/")