kefren's Forum Posts

  • 4 posts
  • I managed to do it another way, using insert, because I will need this data not to be persisted in the front, as several things will only happen in the back end, so I made an insert looking for the data that comes from the api. In this case, it looked like this:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm trying to do it like this, but without success, the array doesn't contain the key data I'm looking for.

  • I need to do this dynamically, because this data comes directly from the database and I need to put everything that comes from each rarity into the array, for example, I want to put rarity: 1, 2 and so on without having to keep doing several events for this to happen, as users will be able to have N bikes of different or the same rarities on their account

  • Hi guys, I want to separate data that comes from json, in fact the data is coming from my api, I want to treat this data so that it is saved in an array, for example, the user in the database has two motorcycles of different rarities, I want to get the data coming in this way {"query":[{"id":1,"rarity":"1","animacao":"1"},{"id":2," rarity":"2","animacao":"2"}]}

    and save it in the array, however I want to get only the value of the key and save it in each field of the array, for example rarity 1 is a motorcycle, and rarity 2 is another motorcycle. I would like a light. after it is already saved in the array, so the user can select which bike he will race with

  • 4 posts