1
General / TMX map loader
« on: February 19, 2018, 08:35:45 pm »
Hello, does any1 have levelloader class for TMX like attachment has for tinyxml?
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.
I recommend using tmxlite or if you must sfml-tmxloader.Thanks, it's rly returned false i'll try to use libs that u adviced
Secondly you should learn some modern C++ where never use owning raw pointers and instead make use of unique (and shared) pointers and thus pretty much do away with manual memory management.
As for the crash:image = tilesetElement->FirstChildElement("image");
std::string imagepath = image->Attribute("source");
It's most likely that FirstChildElement("image") returned false and then you try to access it, causing an access violation, thus crash.