Game Development Community

Glide to Damage Animation Problems

by Dillon Sinnott · in TGB Platformer Kit · 04/29/2011 (10:19 am) · 0 replies

So essentially my problem is this. If my character glides into an enemy, it does not go the damage animation, it just stays on the glide animation, even though he is in fact damaged. To reiterate, it's not that the damage function isn't working, it's just that if you hit an enemy while gliding the damage animation won't play (it also doesn't break out of the gliding into falling when damaged, but I don't care that much about that).

I actually have a second (unrelated) problem where if you drop through a platform object and hit a trampoline object, said platform won't register when you bounce back up to it. So to be clear, it seems like it isn't resetting the 'has touched ground' var if the char hit's a trampoline, so if you drop down off a platform, when you bounce back up your still considered to be dropping through and you can't stand on the platform.