I am seriously at my wits end with this. I’m extremely frustrated right now, so pardon the anger.
I can’t figure out how to do this to save my life. I’ve tried everything; I’ve tried tilting the walkable area and making the game 3D, but the damned polygon colliders for my backgrounds won’t tilt with them. I’ve tried making a parent and child rigidbody (the parent for the “shadow” and the child is the sprite which jumps, so I always have a spot on the ground to reference when I jump to check to see if I’ve hit the ground), but not only have I read that this is extremely poor practice, the damned child body, for some reason, can’t pick up the parent’s speed to adjust my animator. I’ve tried to maintain a separate vector for the “ground position” but, in the presence of colliders, these values are not correct. Furthermore, if I print these two values together, the maintained vector eventually accumulates error. I can’t pull these numbers off the rigidbody because the jump throws off the correct y value for the ground. My last recourse was to implement gravity manually, but I don’t want the rigid body to be kinematic. I feel like I’ve seriously tried everything, and I’m on the verge of giving up. I just can’t get the damned thing to run correctly.
Please, if anybody has made a 2D beat em up, please help me. I haven’t been able to find any good information for how to make this work in Unity, and I’m starting to think it just won’t work. If there is any advice, I am sure it will be invaluable to others who are foolish enough to go down this path.