How do I clicker game (Money mountain bug)

0 favourites
  • 8 posts
From the Asset Store
20 high quality click sounds, ready to improve your game's UI instantly
  • Follows attached file for better understanding: https://mega.nz/#!oSJh0QIT!C20f94hQJPR3 ... HJzuKsDaVY

    I'm creating a clicker style game where you make money by tapping the screen quickly.

    A pile of money goes up as the green bar of progress grows, so far so good.

    The problem is time to move from "Lobby" layout, and returns to "Game" layout again, the stack of money does not continue from where it left off.

    I have tried in many ways without success. How can I be doing to fix this? Any doubts in writing this piece, tell me that I rewrite again = D Thanks! Translated from Portuguese to English.

    If there is a better way to reprogram my stack of money, I thank you.

  • You can use the "persist" behaviour on the object(s) that you want to retain the values and settings... but you are best off making some kind of save/load system for the data.

    Are you making this for mobile platforms or for a PC NWjs export?

    ~Sol

  • You can use the "persist" behaviour on the object(s) that you want to retain the values and settings... but you are best off making some kind of save/load system for the data.

    Are you making this for mobile platforms or for a PC NWjs export?

    ~Sol

    I've tried using this behavior, but it ends up losing the order that money is creating. I'm working on mobile phones.

  • It sounds like you might be better to read up on using local storage - essentially creating a "save" and "load" system to take care of data persistence between layout changes.

    You can read more about local storage HERE

    ~Sol

  • It sounds like you might be better to read up on using local storage - essentially creating a "save" and "load" system to take care of data persistence between layout changes.

    You can read more about local storage HERE

    ~Sol

    I tried with local storage but without success, I think I'm doing it wrong. The game that I'm inspiring and this https://play.google.com/store/apps/deta ... e&hl=pt_BR

    I really wanted to create the way objects are stacked in this game. I have succeeded in creating an animation in which each frame increases the number of money stacked, but unfortunately it was not 100% true what I really want and even more it was created several frames (100 in my case) that ends up weighing a little for mobile devices

  • I haven't used local storage much at all myself, and not for a long time. If it was for NWjs I would be able to make some examples...

    Local storage would definitely be the way to go though... there may be some other tutorials or example files kicking around.

    ~Sol

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I haven't used local storage much at all myself, and not for a long time. If it was for NWjs I would be able to make some examples...

    Local storage would definitely be the way to go though... there may be some other tutorials or example files kicking around.

    ~Sol

    Thank you for your help. I found a form using array and local storage and the result is what I expected = D . I will soon post the link from my game if you wish to see the result. See you!

  • OK great! Glad you found a solution that works for you

    ~Sol

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