Page 1 of 1
How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 02, 2019 1:04 pm
by UnitedAIRWAYS
Hello, I've recently came across such issue and got here in order to ask you experts about it:)
What I'm trying to do in my renpy game is the following:
Launch game -> splashscreen (game logo) pops up -> screen with age verification pops up(using imagemap, if user clicks he's over 18 then it jumps to the main_menu screen, if he clicks he's not, the game closes) -> main_menu or exit
I've been trying to solve this by using beforesplashscreen, but it didn't turn out... Should I use a custom screen for this, or modify splashscreen? Also, how do I add an imagemap directly to the screen? When I try to do so, an error about incorrect screen language appears.
I'd be ultimately thankful if you help me with this, my project would skyrocket from there
Cheers
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 02, 2019 3:25 pm
by Alex
How did you do your splashscreen (game logo) - is it a presplash image or you've made it using splashscreen label?
You can put age verification inside a splashscreen label.
https://www.renpy.org/doc/html/label.ht ... ial-labels
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 02, 2019 4:12 pm
by UnitedAIRWAYS
Thanks Alex for the reply, I've done splashscreen using a splashscreen label. I have an image (basically imagemap; with ground, idle and hover versions) which I'd like to use as said age verification, separately from game logo screen (splashscreen)
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 02, 2019 5:03 pm
by Alex
Well, then in splashscreen label you can show logo and then show age verification screen or just use standard menu to ask player if (s)he 18+.
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Wed Jul 03, 2019 3:51 am
by UnitedAIRWAYS
How do I add screen to a label? I'm kind of newbie in this
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Wed Jul 03, 2019 4:34 am
by Imperf3kt
Note: code untested, merely for demonstration. May work, may not.
Use either a call or a jump.
In your case, I'd use a call and in the action of your "yes, I'm old enough" button, add something like this
Code: Select all
textbutton "yes" action Return("old_enough")
Then you can do a check based on the _return variable.
Code: Select all
if _return == "old_enough":
pass
else:
renpy.quit()
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 09, 2019 10:10 am
by UnitedAIRWAYS
I don't mean to add a textbutton, because I have a separate imagemap to handle this. Thanks for the code anyway:D
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Tue Jul 09, 2019 4:15 pm
by Imperf3kt
You can use it with imagemaps also.
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Wed Jul 10, 2019 5:04 am
by UnitedAIRWAYS
Okay, your code worked with the imagemap twist. Big thanks!
Re: How to add imagemap age verification after splashscreen and before main_menu screen?
Posted: Thu Jul 11, 2019 6:21 am
by Amber96
I'd like to use as said age verification, separately from game logo screen (splashscreen)