[SOLVED] Collision library does not detect character in corners
Posted: Sun Jan 12, 2020 7:07 pm
I had not understood löve's own physics libraries well. So I decided to create my own. So far it worked relatively well, but when I paired it with a tilemap library (which creates a collider for each tile) the character started going through walls when falling over corners.
My project is attached below (the game starts at 3th room, skipping the start screen and other stuff).
* Libs\collision_lib.lua : file that creates platforms (collisors) and returns the nearest walls
* Libs\tilemaps_lib.lua : file that open the room level file (.txt) and creates the tiles and collisors
* Libs\transform_lib.lua : character class
* Use the arrows to move and X to jump
Not a big problem, but it bothers me a little to leave "holes" on the map. If anyone can help I would appreciate
My project is attached below (the game starts at 3th room, skipping the start screen and other stuff).
* Libs\collision_lib.lua : file that creates platforms (collisors) and returns the nearest walls
* Libs\tilemaps_lib.lua : file that open the room level file (.txt) and creates the tiles and collisors
* Libs\transform_lib.lua : character class
* Use the arrows to move and X to jump
Not a big problem, but it bothers me a little to leave "holes" on the map. If anyone can help I would appreciate