I finally fixed some problems I was having with the player’s collider catching on seams.
This bug was pretty rare and not too much of an issue. However in certain parts of the map, mainly near any slopes, the slope’s collider has a tiny seam where it joins the rectangular tilemap collider. The old player collider would get stuck on this seam occasionally.
After a lot of messing around with colliders and 2d physics materials, I fixed this issue by changing the player’s collider to a composite collider.
The composite collider contains a capsule collider and a box collider. The rounded edges of the capsule allows the player to walk over top of seams easily, and the box collider makes it so the player doesnt slip off the edges of platforms.
Comments 2
a small advice : its good that you made one hitbox for the player , but i recommend making it smaller a bit , so that the players feel like the hitbox is “fair” (psychology trick)
the game looks nice the art is also good 👍
Sign in to join the conversation.