I've tried to implement the codes myself but I kept getting errors. This is the example from the game Amnesia Crowd on PSP.

I'm sorry if someone has already asked this question. I hope that any of you can guide or help me. Thank you.

Code: Select all
add FileScreenshot(slot) xalign 0.5Code: Select all
add "images/myupimage.png" xalign 0.5My idea for here is to store the route on the save_name variable then create a condition in the file_slots that will show a custom screenshot of the save file depending on the save_name stored in that save file.kawaiinekochama wrote: ↑Thu Sep 19, 2019 1:20 amHello. I've planned to use a custom image instead of screenshot when you save a game. And the image is also depends on whose route you're playing.
I've tried to implement the codes myself but I kept getting errors. This is the example from the game Amnesia Crowd on PSP.
I'm sorry if someone has already asked this question. I hope that any of you can guide or help me. Thank you.![]()
Code: Select all
## In script.rpy
label start:
$ save_name = "route_1" ## Save the current route in the save_name variable
## Saves from this point and onwards will have a save_name route 1.
"Route 1"
label route_2:
$ save_name = "route_2" ## Save the current route in the save_name variable
## Saves from this point and onwards will have a save_name route 2.
"Route 1"
## In screens.rpy
screen file_slots(title):
## Some codes before the screenshot of the save file...
button:
action FileAction(slot)
has vbox
if FileSaveName(slot) == "route_1":
add "route_1.png" xalign 0.5
elif FileSaveName(slot) == "route_2":
add "route_2.png" xalign 0.5
## And so on...
Ohh! It works! Thank you so much!hell_oh_world wrote: ↑Thu Sep 19, 2019 6:29 amMy idea for here is to store the route on the save_name variable then create a condition in the file_slots that will show a custom screenshot of the save file depending on the save_name stored in that save file.kawaiinekochama wrote: ↑Thu Sep 19, 2019 1:20 amHello. I've planned to use a custom image instead of screenshot when you save a game. And the image is also depends on whose route you're playing.
I've tried to implement the codes myself but I kept getting errors. This is the example from the game Amnesia Crowd on PSP.
I'm sorry if someone has already asked this question. I hope that any of you can guide or help me. Thank you.![]()
Code: Select all
## In script.rpy label start: $ save_name = "route_1" ## Save the current route in the save_name variable ## Saves from this point and onwards will have a save_name route 1. "Route 1" label route_2: $ save_name = "route_2" ## Save the current route in the save_name variable ## Saves from this point and onwards will have a save_name route 2. "Route 1" ## In screens.rpy screen file_slots(title): ## Some codes before the screenshot of the save file... button: action FileAction(slot) has vbox if FileSaveName(slot) == "route_1": add "route_1.png" xalign 0.5 elif FileSaveName(slot) == "route_2": add "route_2.png" xalign 0.5 ## And so on...
Users browsing this forum: No registered users