How do I load variables from an external file?

Get help using Construct 2

Post » Mon Apr 03, 2017 11:13 am


I am making a card game in which you can create custom sets. Once you create these custom words, each is set as a variable and then used in the game.

I would like to make the card set creator to be separate application, so the basic idea would be:

- Make set in card set creator
- Save set under a name
- Then in the actual game, on load up game should be able to recognize if there is a saved set and add it to a list of choose-able sets.

Does anyone know the best way to go about this?

I think as i want the player to able to choose their own save name, I will have to create a saves folder in which the main application can search for files in?

Any advice welcomed

Thanks all
Posts: 65
Reputation: 507

Post » Mon Apr 03, 2017 4:40 pm

Some starting advice:
Look into utilizing arrays or dictionaries, either combined with loading from json/localstorage. Dictionaries are a better option here, personally, as they're easier to understand and learn plus they can fulfill almost any use you'd need for arrays (such as data-storage) unless you specifically need to loop array values, for whatever functions they hold.

Look up stuff on the forums for how to use arrays and dictionaries, and also check out the tutorials section.
Zelda Gamekit (my project)

Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=]Zelda-like Dialogue[
Posts: 558
Reputation: 19,996

Return to How do I....?

Who is online

Users browsing this forum: mistia and 5 guests