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

Author Topic: Problem with TMXloader  (Read 1080 times)

0 Members and 1 Guest are viewing this topic.

Skullek

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem with TMXloader
« on: June 08, 2016, 10:31:52 pm »
Hi, How can i use https://github.com/fallahn/sfml-tmxloader if i got class header file.

For example in Level.H i can't use

tmx::MapLoader map;
cause it's got default constructor which is string/address... (Error   'tmx::MapLoader': no appropriate default constructor available)

if
        tmx::MapLoader map("../GraSFML/Maps");
I got( syntax error: 'string'   GraSFML   e:\dokumenty\visual studio 2015\projects\grasfml\grasfml\level.h   62)   

I only know how to use it in main function, but i don't want to.

How can i read map from .tmx file with this loader properly ?

Thanks :*

fallahn

  • Hero Member
  • *****
  • Posts: 507
  • Buns.
    • View Profile
    • Trederia
Re: Problem with TMXloader
« Reply #1 on: June 08, 2016, 11:23:37 pm »

 

anything