Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to reset player data?

A topic by HeroFigo created Apr 02, 2021 Views: 930 Replies: 2
Viewing posts 1 to 2

I have made an HTML game that saves data within the browser. And when I make a new update for the game I want it to reset all player data. Is there a way to do that without making a new project?

Admin

It depends on how your game stores data. Creating a new page may not be enough if you don’t have the save data scoped to “path” of the place where the game is loaded. Typically, you’ll want to code something in your save data that will clear it out if it’s the wrong version.

yeah, I made an update system. it's a variable that changes every update and if it's not equal to the current update it resets everything. And if it doesn't find any saved update it just gives it the starting amount. Pretty neat if I do say so myself.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.