Array Query

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • I have several matrices, but I want to simplify something. I have certain zones separated by variables, for example, the variable "zona_inv" which belongs to the inventory matrix and the variable "zona_hotbar" in the Hotbar matrix.

    But I'm going to have another matrix, for example, let's call it matrix "X" and it's in zona_X.

    If I want to store some information in the Hotbar matrix and another part of the information in another matrix, but only by comparing the zones, I want it to be saved in the corresponding matrix.

    That is, if the zone is Zona_INV, the information should be saved in the INV matrix.

    But if the zone were Zona_X, it should be saved in the X matrix.

    I'm not sure if I'm explaining myself clearly. If I don't find a way to simplify this, I'll have to add more programming to save the data where it belongs, making many comparisons, but I want to know which zone it belongs to and save it in.

    I need help with this or any ideas. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's very hard to understand you. I suggest you explain the problem to ChatGPT in your own language, and then ask it to create a post for you in English.

    I don't know if this is what you are asking, but here is an example with 3 separate inventories:

    dropbox.com/scl/fi/tp4axxojcnphwad3dyu7p/MultipleInventories.c3p

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