a replay button

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kietjay123

hi i’m working on a short rpg game that have a replay button after winning the game, i’m wondering what’s the most efficient way to return all the script to its originally loaded stage or if better reload the whole game in the back ground, thx

:bust_in_silhouette: Reply From: Ertain

One way is to have initial values for all the objects in the RPG (e.g. quest flags and player stats), yet keep stats for progression separate. As the player progresses through the game, save those stats. When the player has finished the game, assign the initial values to the progression stats so as to “reset” the game.

i was hoping for a less code intensive way ): , guess this will do

kietjay123 | 2020-09-06 08:51