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 - Spode87

Pages: [1]
1
General / Re: Problems with Box2D and sfml-tmxloader
« on: August 31, 2016, 10:51:42 am »
Damn, that was a stupid problem x)

Thank you a lot!

2
General / Problems with Box2D and sfml-tmxloader
« on: August 31, 2016, 09:54:29 am »
Hello everyone!  :D
I decided to write a simple platformer to learn SFML, and I found a library which parses a .tmx file format and creates Box2D bodies automatically. I created a player body, but somehow this body teleports out of the map, and if I comment the line which sets view's center on player, it shows my map without the player.
What should I do? And is this the right place to ask?

Source on Bitbucket: https://bitbucket.org/ilyam9/first-game/src (the code is in main.cpp, I hope you won't complain that I posted the whole thing)
sfml-tmxloader: https://github.com/fallahn/sfml-tmxloader/tree/next

Pages: [1]
anything