How do I save/load a value?

0 favourites
  • 3 posts
From the Asset Store
Generic save dialog
$4 USD
60% off
Template for a generic save / load system, fully documented in comments and video
  • Hello you wonderful community,

    I'm wandering how to save a value (say in-game money) that you earn, like a score.

    The idea is to buy in-game skins...

    example:

    if player_money >=skin_value

    then

    player can afford

    else

    Cannot afford

    This bit is fine... what I'm trying to accomplish is.... if player bought skin for $50 in-game only.... then closes out the game... next game play... load in player skin/money.

    Is this achievable with local storage? I'm poking around and haven't seen anything obvious yet!

    Thanks again,

    Roberto

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes, you can definitely do this with Local Storage, there are plenty of examples and tutorials.

    However, if you are talking about In-app purchases and real money, then you should have a system allowing to restore purchases from some online storage. Otherwise people who spent $50 and then accidentally cleared storage on their device will be very upset.

  • Thanks dop2000,

    This is no more thank a virtual point system... nothing scary like real money ;)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)