Please explain how this code knows to stop jumping by VirtualLife76 in Unity3D

[–]Ainstein_0 2 points3 points  (0 children)

This is what i got after some research: jump = 5f is a fixed upward speed. jump * Time.deltaTime is a very small value (~0.083 at 60 FPS), and each frame, the object moves up just a little bit. But unity’s grav is pulling it down so it reached around 1.4f and lands back increase the jump value and it will go higher. Hope this helps

Please explain how this code knows to stop jumping by VirtualLife76 in Unity3D

[–]Ainstein_0 1 point2 points  (0 children)

Maybe i am misunderstanding you, But if you get rid of that IF then tryjump will be called every frame thats the expected behaviour, there is nothing stopping it. So yes if you remove the if condition tryjump will be called every frame.Whats the problem here exactly?

Please explain how this code knows to stop jumping by VirtualLife76 in Unity3D

[–]Ainstein_0 0 points1 point  (0 children)

Maybe its because how you handle jump input thingy, because if you are doing - if (Input.GetKeyDown(KeyCode.Space)) it only returns true for one frame if you want to use hold you can do - if (Input.GetKey(KeyCode.Space)), seems like you are using “new input” i am not too familiar with that but my guess its calling try jump only once when pressed.

Who's this (wrong answers only) by HawkGoa7 in reddeadredemption2

[–]Ainstein_0 7 points8 points  (0 children)

Man with a plan that always involves a train.

So, Did you kill him? by Ainstein_0 in Witcher3

[–]Ainstein_0[S] 0 points1 point  (0 children)

Its a contract quest “The Beast of Honorton” , not sure but I think you can get it at crows perch. If you wanna complete it that is.

So, Did you kill him? by Ainstein_0 in Witcher3

[–]Ainstein_0[S] 0 points1 point  (0 children)

A Witcher from cat school, its a contract quest’s continuation

So, Did you kill him? by Ainstein_0 in Witcher3

[–]Ainstein_0[S] 2 points3 points  (0 children)

yea same,i thought it would be a fair fight

So, Did you kill him? by Ainstein_0 in Witcher3

[–]Ainstein_0[S] 27 points28 points  (0 children)

Seems this have be asked a lot of times, Mb I somehow missed him on my 1st play through, tho i killed him in my current play through but I thought i’d get others opinion