I have been wondering is there a way to add a "replay mode"? I mean that the player after finishing the game can replay the scenes that they have unlocked without playing the whole game again.
Is it possible?
Replay mode
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.
Replay mode
Check the Chaos Lord development at http://atelieredgeproductions.wordpress.com
- 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:
Re: Replay mode
Sure. The way to do it is thusly.
This gives you an idea of the basic framework. You can probably improve on the gui by using buttons instead of a menu, but the way to do this is basically this.
Code: Select all
init python:
config.main_menu.insert(2, ("Memories", "memories", "True"))
label memories:
$ memories_mode = True
menu:
"Scene 1" if persistent.unlocked_1:
jump scene_1
"Scene 2" if persistent.unlocked_2:
jump scene_2
label start:
$ memories_mode = False
"Outside of a scene."
label scene_1:
"Inside scene 1."
"End of scene 1."
$ persistent.unlocked_1 = True
if memories_mode:
jump memories
"Outside of a scene."
label scene_2:
"Inside scene 2."
"End of scene 2."
$ persistent.unlocked_2 = True
if memories_mode:
jump memories
"Outside of a scene."
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Replay mode
Thanks I'll try this
Check the Chaos Lord development at http://atelieredgeproductions.wordpress.com
Who is online
Users browsing this forum: Bing [Bot], Ocelot