Time.deltatime not working.
I am trying to change players y velocity using deltatime. but when I press the jump key it doesn't jump. The jump key is assigned to a key.
if((Input.GetKeyDown(jump)) && (isAirBorn == false)) { float time = Time.deltaTime * 10; vertVel = time; }
Why are you using Time.deltaTime, exactly? If it is based of velocity (seeing as you are using Get$$anonymous$$eyDown, rather than Get$$anonymous$$ey) then surely just using the value would work.
vertVel = 10;
Your answer
Follow this Question
Related Questions
Missing the class attribute 'ExtensionOfNativeClass' 4 Answers
Error in Inventory Script 1 Answer
The name does not exist in the current context 3 Answers
InvalidOperationException: Collection was modified; enumeration operation may not execute. 0 Answers
error CS0117: `Color' does not contain a definition for `red' 1 Answer