Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? @21You're completely right, it's been too long.. Still the formulas should be correct.ANd especially with games, how would you implement getting to the correct form before landing? I have made the assumption (perhaps I should have state
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Guys, gravity isn't 9.8 meters per second, it's 9.8 meters per second per second.Second, after reaching a certain speed, landing on water is like landing on concrete since liquids do not compress. That's why form is so important when
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Yes. What I wrote is only speed upon impact. Obviously different surfices do more or less damage. The easiest way to define this is to have a factor for each surfice which is multiplied with the health lost. For concrete this could be 1 for example
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? I think you should also make it that, depending on how the player fell off, he might fall on his side, face, back, head, causing different types of injuries and just different damages and possibly paralysis. Mind you, I couldn't do math for my
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? hiI think, eg if tile is 10, player should loos 1000 health: in each hight, 4 health should be lost: for first 3 hights(if hight is <3) or <5, player shouldn't loos any healthwhy I sed in each hight 10 health should be loos? we have mo
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? 16, that is right. URL: https://forum.audiogames.net/post/419270/#p419270 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? From the physics that I remember (I'm still taking physics in high school, so this may not be correct) you also need to keep in mind your falling momentum and the amount of force the impact with the surface will absorb. For example, you
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? From the physics that I remember [q~"]GhI'm still taking physics in high school, so this may not be correct) you also need to keep in mind how much of the impact the ground will bleed off. For example, you would conceivably take more dama
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? The more realistic you get the more complicated things become. That said, here's my take:when any object falls down to earth, there are two forces (simplified) working on it:1. Earths gravity, causing an acceleration (speedup) of 9.8 meter
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? ah! my! brain! oww! ow! ow ow! URL: https://forum.audiogames.net/post/419141/#p419141 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? if (this._onGround_ == false) this.v.y -= 9.8 * dt;else if (this.v.y < -9.8*dt){ // This is when you hit the ground after falling.falldamage = this.v.y * fallfactor;// landsounds, etcthis.v.y = 0; // assuming you don't want to bounce.}I
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Post 8 is correct, but it's easier to just calculate damage from velocity, because it's usually an info you have available:damage = damage factor * velocity ^ 2where velocity is the speed at which your character is going down. The si
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Post 8 is correct, but it's easier to just calculate damage from velocity, because it's usually an info you have available:damage = damage factor * velocity ^ 2where velocity is the speed at which your character is going down. The si
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Oh, good thinking DragonLee. I would use more complex physics equation but I didn't think about the simplest way URL: https://forum.audiogames.net/post/419070/#p419070 -- Audiogames-reflector mailing list Audiogames-reflector@sabah
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? well use the curront ones until you learn those things then URL: https://forum.audiogames.net/post/419061/#p419061 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? @8, omfg omfg oomfg omfg omfg!I'm not even in high school yett! I like complex math but god dmn! URL: https://forum.audiogames.net/post/419049/#p419049 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukogl
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? your algorithm should have a minimum threshhold for falling height , since if the player falls down 10 cm then they shouldnt take 1 hp damage. so let's say that starts at 2 meters. from physics we have the potential energy of a object suspend
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? Are we talking realtime? If so, just go with v.y on impact. URL: https://forum.audiogames.net/post/419030/#p419030 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? I think I've got it, I'll just have to iron out how to calculate the fallingspeed into the equation.Base Health lost from falling: fallingdistance+fallingspeed*10 = fallingdammage URL: https://forum.audiogames.net/post/41900
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? @4, I don't understand that, what language is that? Py py? URL: https://forum.audiogames.net/post/418999/#p418999 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cg
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? simple:if(heightz-playerz<10): health-=(heightsz-playerz) else: player:die() URL: https://forum.audiogames.net/post/418995/#p418995 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahat
Re: Calculating relistic falling dammage?
2019-03-15
Thread
AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: Calculating relistic falling dammage? Hi, i don't know if it is fine, but i would say:current hight minus the coords the player gets to fall on. like let's say i am on a platform wich is 20 meters high, and i fall to 0, the final health that should be subtracted will then b
Re: Calculating relistic falling dammage?
Re: Calculating relistic falling dammage? hmm, interesting, but I want more realism. If you fall 20 feet, then your going to get a lot more hurt then that. URL: https://forum.audiogames.net/post/418990/#p418990 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin
Calculating relistic falling dammage?
Calculating relistic falling dammage? Doesn't have to be completely realistic.Warning! Complex math may insue!Anyway, if the default, and maximum health is 1000, what would be a good dammage formula for falling?It will also depend on the surface you fall on of course, but for a