korbaach's Recent Forum Activity

  • test this capx.... faceLeg.capx

  • How load the array?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • NewLink

  • try again..just click on link BonusLives.capx

    and on the ?Download button

  • .. I decided to add a global variable (Mode) so that when I use local storage, I also use another condition (Mode=0, 1 or 2) along with the regular way of saving high scores...

    One LocalStorage Key? Array?HiScore Variable

    arrayHS.capx

    Three LocalStorage Keys?HiScore Variable

    HS012.capx

  • [quote:exgk6486] I am able to call text and audio from XML but not image.

    so... if you set Text to

    XML.StringValue("//question/good_image/text()")[/code:exgk6486]
    you get [i]"face.png"[/i]
    
    but...  you can't load image?
     from
    [img="http://lookpic.com/O/i2/1098/m2QpNsmg.png"]
  • or something like that?

  • you have error in example for multiple realms..you end with

    ]}[/code:2gfer4bq]
    should be
    [code:2gfer4bq]]}]}[/code:2gfer4bq]
    [code:2gfer4bq]{
      "realms": [
        {
          "type": "pvp",
          "population": "high",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462710732001
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462712427270
          },
          "status": true,
          "name": "Aegwynn",
          "slug": "aegwynn",
          "battlegroup": "Misery",
          "locale": "de_DE",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "aegwynn"
          ]
        },
        {
          "type": "pve",
          "population": "medium",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 1,
            "status": 0,
            "next": 1462710724874
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 1,
            "status": 1,
            "next": 1462710703055
          },
          "status": true,
          "name": "Aerie Peak",
          "slug": "aerie-peak",
          "battlegroup": "Reckoning / Abrechnung",
          "locale": "en_GB",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "bronzebeard",
            "aerie-peak"
          ]
        },
        {
          "type": "pvp",
          "population": "medium",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462710910703
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 0,
            "status": 1,
            "next": 1462710887883
          },
          "status": true,
          "name": "Agamaggan",
          "slug": "agamaggan",
          "battlegroup": "Reckoning / Abrechnung",
          "locale": "en_GB",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "agamaggan",
            "crushridge",
            "bloodscalp",
            "twilights-hammer",
            "hakkar",
            "emeriss"
          ]
        }
      ]
    }[/code:2gfer4bq]
    
    [url=https://app.box.com/s/ggx78mla8yrbai2jaxwf12j0887kksf0]realmsJSON.capx[/url]
    
    [b]Edit:[/b]
    
    [i]also..[/i]perhaps would be better to write json for multiple realms
    like this:
    [code:2gfer4bq]{
      "realm1": [
        {
          "type": "pvp",
          "population": "high",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462710732001
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462712427270
          },
          "status": true,
          "name": "Aegwynn",
          "slug": "aegwynn",
          "battlegroup": "Misery",
          "locale": "de_DE",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "aegwynn"
          ]
        }
      ],
      "realm2": [
        {
          "type": "pve",
          "population": "medium",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 1,
            "status": 0,
            "next": 1462710724874
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 1,
            "status": 1,
            "next": 1462710703055
          },
          "status": true,
          "name": "Aerie Peak",
          "slug": "aerie-peak",
          "battlegroup": "Reckoning / Abrechnung",
          "locale": "en_GB",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "bronzebeard",
            "aerie-peak"
          ]
        }
      ],
      "realm3": [
        {
          "type": "pvp",
          "population": "medium",
          "queue": false,
          "wintergrasp": {
            "area": 1,
            "controlling-faction": 0,
            "status": 0,
            "next": 1462710910703
          },
          "tol-barad": {
            "area": 21,
            "controlling-faction": 0,
            "status": 1,
            "next": 1462710887883
          },
          "status": true,
          "name": "Agamaggan",
          "slug": "agamaggan",
          "battlegroup": "Reckoning / Abrechnung",
          "locale": "en_GB",
          "timezone": "Europe/Paris",
          "connected_realms": [
            "agamaggan",
            "crushridge",
            "bloodscalp",
            "twilights-hammer",
            "hakkar",
            "emeriss"
          ]
        }
      ]
    }[/code:2gfer4bq]
    
    [url=https://app.box.com/s/a2veqt4yje338sc9ojoyxh4y2e8af1yu]realms2JSON.capx[/url]
  • you probably need to reduce size of HexTx....

    ..but do not ask me why..

  • AJAX object

    [quote:3e1m3vwv]How to make a request

    The basic usage of the AJAX object consists of:

    Use the Request action to load a URL.

    A moment later after the request completes, On completed triggers.

    The LastData expression can be used to access the content of the response.

    The tokenat system expression may be useful to split simple responses. Alternatively, you could load LastData in to the XML plugin to read it as an XML document.

korbaach's avatar

korbaach

Member since 9 Sep, 2014

Twitter
korbaach has 3 followers

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies