Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Spunkt

Pages: [1]
1
SFML projects / Re: 'Tiled' Tile-map Loader
« on: February 12, 2013, 08:52:36 am »
Thanks! Looks like I had some problem loading the objects. The program never really accepted that some objects had GID and some did not. But looks like it works now with the help of your:
int gid = (objectElement->Attribute("gid")) ? atoi(objectElement->Attribute("gid")): 0;

EDIT*
I've been thinking, after a lot of searching in the code example you posted, I only see that you can draw the "normal" layers, but if I wanna draw the object tile (if I have one) can I like put it all in a if/else to have the code go one way if there is a "normal" layer or the other if there is a object layer.
Really been stuck on this today.

Thanks

2
SFML projects / Re: 'Tiled' Tile-map Loader
« on: February 08, 2013, 08:52:35 am »
Well, I dont know what it is. I've notice that each time that I have any kind of tile information in the TMX file I get an Assertion Error and when I dont have any tile information I get a "Bad map. No tile information found" but the program is running. Not quite sure how to load the tile information then. Btw I'm using the SFML 2.0, and the tile information that don't work is all the
"<tile gid="7"/>" that is in the file.


Anyone that might have a suggestion ?


3
SFML projects / Re: 'Tiled' Tile-map Loader
« on: February 06, 2013, 03:59:29 pm »
Sorry for writing in a old post but, i've used this code to try get a map loader up and running. But when I try to run it I get an Assertion failure. It says:

File: f:\dd\vctools\crt_bld\self_x86\crt\src\strtol.c
Line: 94

Expression: nptr != NULL

anyone know what this might be?

Thanks

Pages: [1]