- Home /
Question by
Maisonadam1994 · Apr 12, 2013 at 03:15 PM ·
double jump
double jump script
hy guys im really blocked , i'm using the default thris person controller from unity , and i want this script to include a double jump , help me please , im begging u people :(
function ApplyJumping ()
{
// Prevent jumping too fast after each other
if (lastJumpTime + jumpRepeatTime > Time.time)
return;
if (IsGrounded()) {
// Jump
// - Only when pressing the button down
// - With a timeout so you can press the button slightly before landing
if (canJump && Time.time < lastJumpButtonTime + jumpTimeout) {
verticalSpeed = CalculateJumpVerticalSpeed (jumpHeight);
SendMessage("DidJump", SendMessageOptions.DontRequireReceiver);
}
}
}
Comment
Nobody would be doing you a favor by helping you here. The things you need to know to do this are part of the very basic. Tutorials tutorials, doesnt matter on what.
Your answer
Follow this Question
Related Questions
third person double jump 0 Answers
third person double jump 1 Answer
Falling off respawn 4 Answers
Player Money not working 1 Answer
How do I Reset Scene 1 Answer