Small question about variables in objects and arrays

0 favourites
  • 2 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hi, I'm making a kind of RPG, for each character I have around 20 variables distributed between the character object and an array this because the ones in the array I use in one particular scene only. but I'm wondering if I should just put every variable in the object and forget the array. Does it have any impact? does it even matter? help me find out!.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In this case, the impact is about your ease of use and comfort.

    Go the way that fits best for your style and skills.

    If you are not using the values as default values to apply to a character's spawn depending on what it is supposed to do (I'm thinking about different type of enemies here) I would go with the array because the order will be able to hold all default values for your different types.

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