Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gilligan

Fall Damage

This topic is 6630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ive been creating a side scrolling adventure for about a year and a half now, and I was wondering how someone would calculate fall damage. I have tried about 6 different formulas, but they all end up killing the player. Can someone help??

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
just make it a function of the velocity of the player when it hits the ground. If the velocity is small enough, no damage should be done. If it''s high enough, the player should automatically die. Otherwise, do something like subtract the length of the velocity vector times a constant from the players health. They may live or they may die depending on how fast they are going and how much health they have. you could also use the square root of the lenght, or the square of the length, or any other function you feel like.

JS
http://www.thepeel.com/void

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!