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.
-
tcassat
- Regular
- Posts: 30
- Joined: Tue Oct 03, 2017 7:32 pm
-
Contact:
#1
Post
by tcassat » Sat Dec 23, 2017 9:21 pm
Hi, guys.
Can I call the replays from anywhere or do I need to be on a Main Menu / Game Menu screen?
In my game, the player can open his diary in his house and choose the scenes to review. However, I did not create any kind of screen-specific replays. I just want to call replays from his diary.
Code: Select all
menu:
"Other options":
#irrelevant things here
"Read your diary (Replay scenes)":
menu:
"Choose a scene to replay."
"Replay Scene A" if switch_scene_a:
# I don't know how to call a replay from here
Is it possible to do this? Or do I have to create a specific screen for Replays and use "textbuttons" for this?
-
Aoi14
- Newbie
- Posts: 23
- Joined: Sun Dec 24, 2017 3:24 pm
- Projects: GuardianS X
- Location: Somewhere over the Rainbow
-
Contact:
#2
Post
by Aoi14 » Mon Jan 01, 2018 8:39 pm
I'm really not sure if this is helpful, but you could give each scene a label and jump to it at a replay.
Code: Select all
# Scene A goes here
label Scene_A:
"Hello etc."
menu:
"Other options":
#irrelevant things here
"Read your diary (Replay scenes)":
menu:
"Choose a scene to replay."
"Replay Scene A" if switch_scene_a:
jump Scene_A
I really hope this works and is helpful. Let me know how you get on!

Working on VNs. As usual 
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#3
Post
by PyTom » Mon Jan 01, 2018 9:21 pm
You can, but realize you can't save in a replay.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
Users browsing this forum: Google [Bot]