by itself it is an imitation of loading cuz renpy load scenes very fast. i want to make something like loading from the witcher 3. some time is allocated for “loading” so that the player can read or listen to what happened before. In any case, in the code you can somehow provide some checkpoints so that the game understands which picture and which replica to load
halp
how to make a loading screen where the player is reminded of what happened at a previous point in the plot?
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.
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.
- cursedarchi
- Newbie
- Posts: 7
- Joined: Tue Feb 27, 2024 9:47 am
- Projects: Грёзы Фантома 3: Война в Ярославле/Sweet Dreams of Fantom 3: Yaroslavl' at War
- Discord: cursedarchi
- Contact:
- Ocelot
- Lemma-Class Veteran
- Posts: 2428
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: how to make a loading screen where the player is reminded of what happened at a previous point in the plot?
Always have data you want to show after loading up to date in your game, and then use after_load special label to show some screens telling player what happened before.
https://www.renpy.org/doc/html/label.ht ... ial-labels
Example:
https://www.renpy.org/doc/html/label.ht ... ial-labels
Example:
Code: Select all
default happened_before = ["you have started the game"]
label start:
"A boring day" # Save-Load there and you will see default message
$ happened_before = ["Something unexpected happened", "Who could have thought?"]
"A surprising twist" # Save-Load there and you will see new messages
return
label after_load:
"In previous episodes"
$ i = 0
while i < len(happened_before):
narrator happened_before[i]
$ i += 1
return
< < insert Rick Cook quote here > >
Re: how to make a loading screen where the player is reminded of what happened at a previous point in the plot?
cursedarchi wrote: ↑Sat Mar 30, 2024 11:23 am by itself it is an imitation of loading cuz renpy load scenes very fast. i want to make something like loading from the witcher 3. some time is allocated for “loading” so that the player can read or listen to what happened before. In any case, in the code you can somehow provide some checkpoints so that the game understands which picture and which replica to load
Here's another example of what Ocelot said:Ocelot wrote: ↑Sat Mar 30, 2024 3:15 pm Always have data you want to show after loading up to date in your game, and then use after_load special label to show some screens telling player what happened before.
https://www.renpy.org/doc/html/label.ht ... ial-labels
1. You prepare a list to keep pictures and comments for "Previously in the game...":
Code: Select all
default recap = []
Code: Select all
$ recap.append(["bg", "You met Vikram"])
Code: Select all
label after_load:
python:
for pic, replica in recap:
renpy.show(pic)
renpy.say(None, replica)
Code: Select all
screen skip_recap():
button:
background "#A00"
text "{b}Previously...{/b}\nClick here to skip"
xalign 0.5
action Call("after_load_finish")
Code: Select all
default recap = []
screen skip_recap():
button:
background "#A00"
text "{b}Previously...{/b}\nClick here to skip"
xalign 0.5
action Call("after_load_finish")
label after_load:
show screen skip_recap
scene black
python:
for pic, replica in recap:
renpy.show(pic)
renpy.say(None, replica)
label after_load_finish:
hide screen skip_recap
return
label start:
$ recap.append(["bg", "You met Vikram"])
scene bg
"Hi! I'm Vikram. Will you help me?"
menu:
"Help Vikram":
$ recap.append(["bg1", "You agreed to help Vikram"])
scene bg1
"Thank you!"
"Refuse":
$ recap.append(["bg2", "You refused to help Vikram"])
scene bg2
"Shame on you!"
"Anyway, it is what it is."
"THE END"
If the problem is solved, please edit the original post and add [SOLVED] to the title.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]