How do I make this character system working?

0 favourites
  • 4 posts
From the Asset Store
_______ Huge collection of metal fixtures ________
  • I'm making a character system, that read his infos in XML files;

    How can I load data from XML accourding to touched button (in his IDs)? And from loaded XMLs, get the nickname of char and put into "Window Text"?

    The project's CAPX. Thanks in advance for who can help.

  • https://www.scirra.com/tutorials/807/how-to-read-an-xml-and-make-your-game-talk

    But its much easier, faster and needs less storage, if you work with JSON!

  • deathangel1479, how do I make this shiny-working with JSON in my CAPX? Too, I need to set animation of two first icons accourding to name of character in JSON.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lets crack a nut with a sledgehammer.

    Project

    Plugin

    [
      {
        "genotype": {
          "name": "Car",
          "start_hp": "",
          "start_attack": "",
          "start_defence": "",
          "max_hp": "",
          "max_attack": "",
          "max_defence": "",
          "start_capture_rate": "",
          "max_capture_rate": "",
          "max_exp": "",
          "metamorphose_rate": "16",
          "base_level": "5",
          "types": "",
          "gender": "",
          "dna_gender": "",
          "dna_specie": "",
          "dna_variety": "",
          "max_strength": ""
        },
        "fenotype": {
          "nickname": "Car",
          "": ""
        },
        "status": {
          "hp": "",
          "pp": "",
          "held_item": "",
          "strenght": ""
        }
      },
      {
        "genotype": {
          "name": "Airplane",
          "start_hp": "",
          "start_attack": "",
          "start_defence": "",
          "max_hp": "",
          "max_attack": "",
          "max_defence": "",
          "start_capture_rate": "",
          "max_capture_rate": "",
          "max_exp": "",
          "metamorphose_rate": "18",
          "base_level": "5",
          "types": "",
          "gender": "",
          "dna_gender": "",
          "dna_specie": "",
          "dna_variety": "",
          "max_strength": ""
        },
        "fenotype": {
          "nickname": "Airplane",
          "": ""
        },
        "status": {
          "hp": "",
          "pp": "",
          "held_item": "",
          "strenght": ""
        }
      }
    ][/code:3t3bi5fp][url=https://www.jsoneditoronline.org/]Great JSON Site[/url]
    
    I would make it even a little bit different, but that's enough for now.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)