Help get these X,Y coordinates into an Array

0 favourites
  • 2 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • <font face="Arial, Helvetica, sans-serif">

    <font size="2">

    Hi Guys!

    Can anyone HELP me getting these

    X 1,2,3,4,5,5,5,5,5,5

    Y 1,2,3,4,5,6,7,8,9,10

    Coordinates into an 2 dimensional Array

    From an external file like a comma separated -or row separated txt-file.

    Or some other txtbased -file...

    And explaining every step of the way for an amateur like me.

    I've been researching for 3 whole 12 hour days - reading and testing pretty much everything in tutorials, how to-s and manuals, for construct 2 but I cant make this work.

    I've managed to get a near 100% result putting coordinates into an array with the help of nested loops. But its really mindstruggling to modify and to get the right data in the right places in the array.

    I have done this procedure with other programming languages - loading stuff and data into arrays from external files, like txtfiles. Like in C-sharp. But im NOT a programmer, and DON'T think like one - OK... :)

    I need step by step instructions and explanations how the flow goes in the events. I can learn and remember knowledge not data. :)

    I'm a creative designer, and sounddesigner, and worked on different game-productions with sounds.

    I really would appreciate the help so I can make my DREAM-GAME come true :)




  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    not sure how to proceed to get the string into the variable though.

    Working with the string is not that hard though.

    Go comma by comma: add x coordinate to y=0, add y to y=1, after that remove the contents you just added from the string and go to the next x of the array (increase the array size). Probably could work with pop and push, but haven't used that yet.

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