Help get these X,Y coordinates into an Array

Get help using Construct 2

Post » Sun Oct 27, 2013 1:55 pm



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 :)

THANKS!

Soulmachine2013-10-27 13:55:55
Soulmachine @Soundcloud
B
14
S
2
G
1
Posts: 63
Reputation: 928

Post » Sun Oct 27, 2013 6:08 pm

http://s000.tinyupload.com/index.php?file_id=00010966938567073758

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.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests