oosyrag's Forum Posts

  • In the image editor, set the animation speed to 0.

  • https://www.dropbox.com/s/nwyvxrfb0mg4q ... p.PNG?dl=0

    You set the string returned from each button manually yourself, it is not defined anywhere.

  • Cross origin request? Are you referencing something hosted on a domain sperate from where you uploaded to?

    It is not your server that's blocking the request usually, it is the one you are trying to get the file from.

  • https://www.scirra.com/manual/78/expressions

    Read the operators section carefully. | is a logical OR expression. Each of the statements between the | will return 0 of false, 1 of true. So compare the whole first statement to see if you get a 0 or 1 out of it.

  • Also you can use compare two values 0<var&5>var is equal to 1, but again that's the same as the system is in between variables condition. Why don't the previous suggestions work for you?

  • Compare two values var=1|var=2|var=3|var=4 is equal to 1

    Why not set up 4 conditions and use an "or" event block? It is still one event.

  • Do it manually. On button pressed, set a variable to the character you prefer.

    The keyboard has that expression because it already has a string mapped to every key...

  • Curved or straight trajectory? Straight you can just stretch a 1px tall line sprite as long as you need it, curved you can break it up into x pieces with some creative lerping.

  • Persist will keep your objects from being destroyed upon changing layouts.

    You can also save your answers to global variables, which persist across layouts.

    Honestly though..... Sounds like the wrong choice of tool for your application. Try using a Google form and sheets in Google drive instead.

  • You will learn more in six months by actually trying to do so than you will by spending that time asking people on forums how much you will learn in six months over and over again.

  • Using an invisible helper sprite is perfectly acceptable and recommended for ease of use.

    Otherwise, you may use the viewport expressions to get the edges of the screen and use those as a condition to keep the scroll event from running past the layout edges.

  • You don't want to add anything to loopindex, as it correlates to your array x index. If you want to set data for your second row, you need to add an action set array at x y, where x is loopindex and y is 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ahhh I see.

    I'm not very familiar with XML myself, so someone else may be able to give better input.

    I think the structure of an XML file generally lends itself to describing nested data rather than a spreadsheet like array. It would be more like an object and its instance variables. For an array, it may be better to use a spreadsheet saved as a .csv.

    You also mentioned procedural generation, so wouldn't your array be generated in game? In that case, you can simply save your arrays as JSON, and load that straight back into your array. No need for XML.

  • How is your xml and array arranged? What do you want to load into your array?

    To parse a project file, you will need to request it with AJAX. Then On AJAX completed, you will have access to the contents in AJAX.LastData.

    You can use tokenat or the XML object to pull out whatever relevant information you want to put into an array however you want or into any other data structure.