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

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

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



Login to view attachments
DBPro Master
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:

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

Login to post a reply

Server time is: 2020-01-20 04:15:33
Your offset time is: 2020-01-20 04:15:33