How do I do Xml and Array Mapping ?

Get help using Construct 2

Post » Sun Jun 15, 2014 7:21 pm

Well, the reason for my question is i don't have a development background. i want to set my game levels with the help of array mapping and tiles. I know i can use tiled map editor inbuilt in construct 2 but for new level i need to make new layout and eventually it will increase the file size too!

My knowledge so far!
I can use array manually, ex- i know how to set each array values and spawn tiles on it set frame number according array value. I also know that i can upload xml file in project folder and call through Ajax.

What i want to learn -
How to pick all values from xml file and set them accordingly to array i have created?
or
If i have called project file in xml how can use to set new level using same tile set.

What i am expecting as help!
I expecting study materiel on xml and array mapping and how i can implement them in construct 2, also an example capx would be great.
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Sun Jun 15, 2014 8:26 pm

ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Mon Jun 16, 2014 5:21 am

I have read that and i know how to parse them, but that's not the complete answer still my problem is the same with collecting all those parsed values and putting them into array!

anyway thanks for the effort!

i have sent a mail to @rexrainbow, as this was derived by his tmx importer but i lost that capx file and now he has updated it. I hope he might answer me if he is not busy too much!
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Mon Nov 21, 2016 4:28 am

I need to do this also!... Any answer around?
B
21
S
5
G
1
Posts: 13
Reputation: 1,729


Return to How do I....?

Who is online

Users browsing this forum: Bing [Bot], matriax and 20 guests