How do I store character attributes wisely?

0 favourites
  • 4 posts
From the Asset Store
290 static tiles (32x32 in size) + 2 animations for use in your project!
  • My goal:

    Have all sorts of character attributes (strenght, intelligence etc.) stored which can be increased by leveling up your character.

    General conditions:

    I want to have it set up the best way possible, without bugs / lags and without hundred hours of work if something is missing out.

    My question:

    I thought about using Arrays (maybe CSV plugin?), general variables, instance variables, dictionaries etc.

    I tried different things, but still can't find out how to do it the best way.

    Sorry for my bad english.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The simplest way is to use instance variables.

    Arrays are also a good choice and could be more flexible and easier to work with when importing/exporting, but also more complex and prone to logic bugs.

    There are a lot of ways to do it, as you mentioned with arrays, general variables, instance variables, and dictionaries, and it really depends on what makes the most sense for you and what you are most comfortable with. This will result in the least problems down the line. Keep it as simple as possible while being able to do everything you need to do.

  • Im fairly new to using construct but have made a couple simple games that require storing attributes and I found using instance variables is the easiest and most reliable way for me.

  • Dictionaries or the rex_hash works also.

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