FileSave, FileLoad and Restart Game prompts
Posted: Tue Dec 17, 2019 7:38 pm
I'm stuck with two problems:
The first, is that i decided to put a single save slot, so i replaced
to
It works, aside from the fact the button is constantly on a selected state
i know kinda solves it, but it deactivates the overwrite prompt, which it's something that i want to keep, and i hope there is a workaround
The second is that, i added a continue button and, in a similar fashion (viewtopic.php?f=51&t=48154), i wanted to show the restart prompt, but ONLY when a save file exist, which means i have to check if the save file exist, but i can't grasp how to actually write the code
Thank you in advance ;u;
The first, is that i decided to put a single save slot, so i replaced
Code: Select all
textbutton _("Save") action ShowMenu('save')
###
textbutton _("Load") action ShowMenu("load")
Code: Select all
textbutton _("Save") action FileSave(1)
###
textbutton _("Load") action FileLoad(1)
i know
Code: Select all
confirm = False
The second is that, i added a continue button and, in a similar fashion (viewtopic.php?f=51&t=48154), i wanted to show the restart prompt, but ONLY when a save file exist, which means i have to check if the save file exist, but i can't grasp how to actually write the code
Thank you in advance ;u;