-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collision in tmxlite #22
Comments
This is not really relevant to the library, and even if it were you do not state what 'everything' is. There are plenty of articles on the internet such as this, this and this which describe collision detection and resolution. When you have understood what the articles are explaining, think about the data they require, such as the shapes or objects - then maybe tmxlite might be useful in loading that data from a tmx file for you to work with. |
tmxlite does only load maps - it does not detect collisions, and you'll have to do it in your own code. If you want to check for collision against certain types of tiles (not objects) like when using a collision layer, then you can get the tile values like so (assuming collision layer is layer 0)
(note that "ID" in this case probably means "integer data" - not "identifier"!) and then check if you can walk there or not ;) |
I have tried nearly everything to have proper collision plz help :)
The text was updated successfully, but these errors were encountered: