XML from file

Get help using Construct 2

Post » Sun Jul 14, 2013 4:48 pm

Hi guys been a while since i did anything on c2 im in middle of porting a game from libgdx over to c2 since C2 performance on the web is way better then gwt way to go C2 developers thank you !!!

Im having a problem Reading xml from an ajax request here is a zip of what ive tried so far and the xml level i am trying to read

https://dl.dropboxusercontent.com/u/96964806/XMLParsing.capx

what i am trying to do with the xml is find <Layer Name=""platforms"" Visible=""true"">

or   <Layer Name=""platformsWrap"" Visible=""true""> loop through them find there
<Position>
                        <X>290</X>
                        <Y>-3068</Y>
</Position>

and create game objects in that position i would really appreciate the help thanks in advance
B
20
S
3
Posts: 109
Reputation: 1,972

Post » Sun Jul 14, 2013 6:53 pm

what would be the best way to populate game objects at the xy coordinates from an xml file?
B
20
S
3
Posts: 109
Reputation: 1,972

Post » Sun Jul 14, 2013 9:07 pm

no worries ppls i got it
B
20
S
3
Posts: 109
Reputation: 1,972

Post » Sun Jul 14, 2013 9:33 pm

Oh well I'll leave this here anyway: xml_parsing_1.capx (r132)
B
55
S
28
G
18
Posts: 1,520
Reputation: 25,315

Post » Tue Jul 16, 2013 8:00 pm

thank you ill check it out
B
20
S
3
Posts: 109
Reputation: 1,972


Return to How do I....?

Who is online

Users browsing this forum: Iftikhar555, mohamed hagras, oddreal, RetroSpock and 3 guests