I assumed u checked the ground every frame? Its best to use a ray cast since the character is just a sprite, but I suppose that is alright!