Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I am using "one-screen mode" and I would like to include a simple save/load function based on a single save file. I have searched the forums but I can't seem to find the right code for this.
# The game starts here.
label start:
scene black
N "GAME TITLE"
menu:
"start":
jump begin
"load" ##### Clicking this option should load the game's single save file if it exists.
#####I also need to add a permanent "save" button after the game story starts.
Thank you in advance.
Last edited by CSV on Fri Sep 15, 2017 5:20 pm, edited 1 time in total.
# The game starts here.
label start:
scene black
N "GAME TITLE"
menu:
"start":
jump begin
"save":
$ FileSave(1, confirm=False)()
"load":
$ FileLoad(1, confirm=False)()
"Save file does not exist."
jump start
# The game starts here.
label start:
scene black
N "GAME TITLE"
menu:
"start":
jump begin
"save":
$ FileSave(1, confirm=False)()
"load":
$ FileLoad(1, confirm=False)()
"Save file does not exist."
jump start
Thank you! This worked for the load button, but I still can't figure out how to have a "save" button always present during the game.