mspraggs / potentia

Southampton Game Jam 2015
0 stars 0 forks source link

Anim Flickering on Landing #36

Closed DivFord closed 9 years ago

DivFord commented 9 years ago

When the character lands, we get a flicker between the falling and idle anims. I'm pretty confident this can easily be fixed by using different distances for the ground check based on whether he's grounded or not. If the check distance is longer when he's already on the floor, tiny bounces shouldn't trigger the anim.

I'll leave this one in your hands, since I can't find that code, and it's probably better if I don't muck around with it anyway.

Fyll commented 9 years ago

Actually, this is probably gonna be harder than it should because of a slight quirk in the collision detection. At the moment, what happens is that when he gets near to the ground, because he's moving quickly, he bumps into the ground before he's reached it. The code then makes it so that he stops, because he's collided, but he's actually a short distance above the ground. He then starts falling again. This repeats until he's actually close enough to the ground.

I'll try to sort it out, but it's not just a quick fix.

Fyll commented 9 years ago

Nevermind. I ceded and just did it the easy way. It's fixed now.