0 votes

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

in Engine by (41 points)
edited by

1 Answer

+1 vote
Best answer

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.

by (2,626 points)
selected by

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.