RENPY and the REPLAY function

Pixieblink

Engaged Member
Game Developer
Jul 13, 2019
2,651
6,081
I'm running into a problem on my game The Professor remastered . I wanted to use Renpy's REPLAY function, to allow players to re-play past game sequences.

It works perfectly UNTIL you load a saved game, and then persistent data bolixes everything up.
Any advice / help / suggestions on how to fix this would be greatly appreciated.


# --------------------------------------------- SHOW AVAILABLE REPLAY SEQUENCES

screen computer_screen(): #Preparing the imagemap
vbox:
xalign 0.33
yalign 0.065
textbutton "Dream of Erika" action Replay("erika_mem_01")
textbutton "Done" action jump ("after_movies")



# --------------------------------------------- SEQUENCE REPLAY
label erika_mem_01:

$ renpy.movie_cutscene("erika136.webm")

scene dude_wakeup_008
d "{i}That's it!!!{/i}"

scene car_go_2
play sound "car.mp3"
d "{i}I could trick her into playing strip poker!{/i}"

$ renpy.end_replay()




# ----------------------------------------------------------------- AFTER REPLAY / SHOW AVAILABLE REPLAY SEQUENCES / EXIT REPLAY SCREEN

scene computer_screen
call screen computer_screen
"show computer screen"

jump after_movies


label after_movies:

scene dude_brainsuck01_15
d "This is cool."

scene dude_brainsuck01_19
d "But I'm bushed. Time to call it a day."




... and the game continues
 
Last edited: