- Home /
Character Getting Caught on Colliders & Jump Animation Cancelled by Ground Check
I am currently developing the first version of the movement system for a game I am making, using Kenny's Game Assets for placeholder graphics. I've created a 2D level using a tilemap and applied a tilemap collider to it. My player character has a box collider 2D component.
My character seems to be getting stuck on parts of the tilemap collider. This seemingly happens at random, and the only way to get through it is to jump over it or go in the other direction.
Also, their jump animation is getting canceled because the ground check does not leave the ground entirely the moment after the player jumps. I have an event in-place to cancel the jump animation once the player reaches the ground once more so they can go back to idle or regular moving animations. This event is invoked whenever the ground check becomes true.
A video of both issues, along with screencaps of relevant code and my animation transition, can be found on this Reddit thread I made.