The idea:
What I want is for the main menu to change as I unlock different endings.
First all chars are grayscale and after unlocking each character, their picture in the main menu becomes colored (they don't become clothed as it might seem from the crappy drawing). I haven't seen this in any VN I've played and I think it'd be pretty cool.
---------------------------------------------------
What I tried:
I imagined I would need some persistant variables and to have each of the 8 main menu images (c1, c2, c3, c1&c2, c1&c3, c2&c3, all and none). I tried what I thought might work, using just 2 images.
In options:
Code: Select all
init -2 python:
if persistent.menupic == "1":
layout.imagemap_main_menu("menu/main/mm.jpg", "menu/main/mm_hover.png", [
(587, 182, 800 ,229, "Start Game"),
(580, 232, 800, 276, "Load Game"),
(583, 279, 800, 325, "Preferences"),
(583, 329, 800, 375, "Quit"),
(0, 0, 1, 1, "Help"),
])
else: ## it always chooses this one
layout.imagemap_main_menu("menu/main/mm2.jpg", "menu/main/mm_hover2.png", [
(587, 182, 800 ,229, "Start Game"),
(580, 232, 800, 276, "Load Game"),
(583, 279, 800, 325, "Preferences"),
(583, 329, 800, 375, "Quit"),
(0, 0, 1, 1, "Help"),
])
Code: Select all
label start:
menu:
"menu1":
$ persistent.menupic = "1"
##$ renpy.full_restart() I tried adding this but it didn't help
"menu2":
$ persistent.menupic = "0"
##$ renpy.full_restart()
I was thinking of the characters gradually becoming more colored as you got their endings but that is probably more complicated (some kind of layering of transparent images maybe?) and I can't even manage this little task.
I have little to no knowledge of screen language so if that's what I need to use, please feel free to give details/code snips ^^;
Thanks for reading and sorry if my questions are noobish.