Hey guys! I have coded this successfully or just about a few different ways and each of my methods ends up having some minor issues. I was wondering what you guys thought. Basically if my player falls for too long without coming in contact with a platform, upon hitting the ground or a platform if fallenY is too high, the player explodes into blood and organs lol
Can someone walk me through some pseudo code? Thank you! Like I said I have it working FOR THE MOST part in a few different ways, but every time I think I have it down, I find an issue with it.
Here is what I currently have:
if (ySpeed >= 0 && isJumping == true || isJumping == false && !collide("level", x, y))
{
hasFallen ++;
}
if (isOnGround == true)
{
hasFallen = 0;
}
if (collideTypes(["level"], x, y + 1) && hasFallen >= 115)
{
death = true;
xSpeed = 0;
ySpeed = 0;
}