I am trying to make a visual novel consisting of 8 short stories, which are immediately accessible through a story/chapter select screen. The user first gets presented a title screen, which is the main menu. An image button there brings up the chapter screen.
from screens.rpy:
Code: Select all
imagebutton idle "gui/start.png" xpos 110 ypos 320 action Show("chapter", transition=dissolve)
Code: Select all
screen chapter():
tag menu
style_prefix "chapter_menu"
add gui.chapter_menu_background
imagebutton idle "gui/chapter1_button.png" xpos 24 ypos 24 action Start("story01")
imagebutton idle "gui/chapter2_button.png" xpos 336 ypos 24 action Start("story02")
imagebutton idle "gui/chapter3_button.png" xpos 648 ypos 24action Start("story03")
imagebutton idle "gui/chapter4_button.png" xpos 960 ypos 24 action Start("story04")
imagebutton idle "gui/chapter5_button.png" xpos 24 ypos 336 action Start("story05")
imagebutton idle "gui/chapter6_button.png" xpos 336 ypos 336 action Start("story06")
imagebutton idle "gui/chapter7_button.png" xpos 648 ypos 336 action Start("story07")
imagebutton idle "gui/chapter8_button.png" xpos 960 ypos 336 action Start("story08")
imagebutton idle "gui/back.png" xpos 12 ypos 639 action Show("main_menu", transition=dissolve)
from script.rpy
Code: Select all
init:
image white = Solid((255, 255, 255, 255))
image splash = "gui/splash.png"
image bg room = "gui/room.png"
label splashscreen:
scene white
with Pause(0.5)
show splash at Position(xpos = 0.5, xanchor=0.5, ypos=0.5, yanchor=0.5) with dissolve
with Pause(2.5)
scene white with dissolve
with Pause(1)
return
label story01:
show bg room
"Bla bla."
"Bla bla bla."
hide bg room
return
label story02:
...
label story08:
...
etc.
I would like to have the user brought back to the story select (chapter) screen instead. How can this be achieved?