How do I save 30 variable value in construct3 ?

0 favourites
  • 5 posts
From the Asset Store
30 high-quality 2D monsters. This asset is perfect for a side scrolling game, or even a turn based RPG type game.
  • Hi

    I am making a game and want to save 30 to 40 variable. How to do it and can you make a small project on it. Also I am beginner in all this app making.

    If helped thx you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Consider using a dictionary instead of those variables.

    You can still save many variables at once in Local Storage using this method:

    howtoconstructdemos.com/easily-save-multiple-values-in-local-storage

  • Variables can be made in a lot of different ways so it more so depends on what you are trying to build.

    Dictionaries and Arrays can store large amounts of variables all in one spot. Since you are brand new to this I believe it would be easier to start out with some instance variables or global variables.

    Instance variables are attached to an object. They can be changed by calling that objects variable, which allows you to have multiple of the same object all with different variable values. These values are lost once you destroy the object or change the layout.

    Global variables are meant to exist forever and would not be useful for trying to store values for multiple of the same object. But if you have a single use case for a value you that you want to last through layouts or track even after destroying the object then you want to use globals.

    I have a video that goes through working with variables on a very basic level if you wanted more information: youtube.com/watch

  • Thank you And can I use save and load form settings. Can you tell me its disadvantage.

  • System Save action saved the entire state of the game - all objects, variables, everything.

    With Local Storage you can choose what data you wish to save.

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