Hello there everyone!
While I was running through my little platformer project today, I had came across an issue regarding what happens when the player's character jumps off of an enemy.
While I was implementing this feature into my project, I was using the Goomba Bounce Example as a reference from a site called Castle of Britain. (For some reason the link isn't working)
At first things seemed to be going fine, however something must have been added incorrectly. You see, when the player character jumps on an enemy's head it doesn't react the way it's supposed to (Mario jumps on a Goomba, it disappears and he bounces off it), but instead, the enemy simply disappears leaving the player's character to fall through the enemy, without even bouncing even the slightest bit.
What's more is that, on some rare occasions if you run into the enemy head on, or (albeit VERY RARELY) if you jump from a certain angle, the player character does indeed move, but instead of bouncing off the enemy, THEY GO FLYING IN THE DIRECTION THEY WERE FACING. So for example: If I attack the enemy by running into it (moving left to right), I go flying across the level to practically the other end of the level, while being slightly in the air.
If there's anything that may need some more explanation, just alert me and I'll clarify it for you.
I'd greatly appreciate anything to help me fix this problem.
Thanks in advanced