Display Chapter Label to player
Posted: Mon Feb 19, 2018 2:47 am
How does Katawa Shoujo display this information at the bottom?
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
Code: Select all
define gamedays = {
"default" : ["chap/day 0.png"],
"D-0" : ["chap/day 0.png"],
"D-1" : ["chap/day 1.png"],
"D-2" : ["chap/day 2.png"],
"D-3" : ["chap/day 3.png"],
"D-4" : ["chap/day 4.png"],
"D-5" : ["chap/day 5.png"],
"D-6" : ["chap/day 6.png"],.
}
define gamechapter = {
"default" : ["chap/ch 0.png"],
"CH-0" : ["chap/ch 0.png"],
"CH-1_1" : ["chap/ch 1_1.png"],
"CH-1_2" : ["chap/ch 1_2.png"],
"CH-1_3" : ["chap/ch 1_3.png"],
"CH-1_4" : ["chap/ch 1_4.png"],
"CH-1_5" : ["chap/ch 1_5.png"],
"CH-1_6" : ["chap/ch 1_6.png"],
"CH-1_7" : ["chap/ch 1_7.png"],
"CH-0_u" : ["chap/ch 0_u.png"],
}
screen daychap:
add "chap/chapbase.png" xalign 1.0 yalign 0
#The part on top is a background
for d in current_gameday:
add d:
pos (0, 0)
for d in current_gamechapter:
add d:
pos (217, 0)
##This part below is in your script, where you set the initial values.
$ current_gameday = gamedays["D-0"]
$ current_gamechapter = gamechapter["CH-0"]
##You can then use this screen in your navigation screen
screen navigation:
#Here goes all that nav code
use screen daychap