Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / styx reading XML file created by Tiled

Author
Message
Scotty1973
AGK Backer
13
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 18th Apr 2013 19:26
Hi

I've been playing around with Styx XML commands and I can understand how to read a straight forward XML file like:





My problem is i don't seem to be able to get information out of the attached xml file. It has the tmx extension but reads like xml.

How do I get the stuff like width, height , tilewidth, source etc?

In <layer> how do i access name, width and height?


Many thanks

Scotty

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd May 2013 06:41
I'm not familiar with the syntax of Styx, but what you're trying to access are what's called the node's "attributes". If you look through the styx help file, see if you can find any commands for access attributes.

However, as an alternative:
http://forum.thegamecreators.com/?m=forum_view&t=205257&b=5

"You're all wrong. You're all idiots." ~Fluffy Rabbit

Login to post a reply

Server time is: 2024-11-21 12:26:18
Your offset time is: 2024-11-21 12:26:18