Question by
wassim-s-haddar · Apr 17, 2018 at 07:15 PM ·
inputjumpgetkeydown
Jump Input Problem
Problem Jumping using this code, It jump but when i set the settings to very low it will not jump at all same problem using other PC's just with different settings
if (player.isGrounded == true) { jumpTimes = 0; }
if (jumpTimes < manager.jumpTimesLimit){
if (Input.GetKeyDown (KeyCode.Space)) {
// playerAnimation.SetTrigger ("isJumping");
verticalVelocity += manager.jumpDistance;
jumpTimes += 1;
}
}
However it works using "GetKey" but in that case it will double jump directly! Any recommendations please?
Comment
Your answer
Follow this Question
Related Questions
GetKeyDown not always registering 1 Answer
How to enable input when it is pressed? 1 Answer
Making a fly mechanic while using the same button for jump 0 Answers
Character Jump only works randomly and only with the "Y" Button 0 Answers
GetKeyDown Not Functioning When Two Unrelated GetKeys are True 0 Answers