- Home /
How Can I Make My Character Double Jump and Wall Jump?
I have the third person controller and I need to find some double jump and wall jump. Could you also tell me how to put it in my game and activate it? Thank you
I think you have to write an own script to do this or upgrade the basic script. There is no standard asset which does what you want.
Answer by poncho · Apr 08, 2014 at 02:36 PM
you can change a little the third person controller, you need to change the isGrounded property, to set it as true after the second jump, for this you will need to add a count be less than 2, and if it is 2, the jump is not allowed. and for the wall jump, it would be similar, since the wall could work(or not) as a ground object, still the second jump could apply
I went on the third person controller script and there was seven places where it says IsGrounded and the have parentheses next to them what do i write?
go to the code of the jump, learn from it, see how it makes your controller to jump(very likely to use addforce), then replicate that behavior in your desired moment( on mid air (not in ground)), add a counter that gets to 0 when the player have isGrounded true, and let the player jump while this counter is less than 2, add 1 when jump(or addforce) is executed.
this is the logic to make it jump, not code, sorry, still it will help you to improve your problem solving and coding skills, good luck
Your answer
Follow this Question
Related Questions
Jumping away from a wall 1 Answer
How to make a proper double jump - rigidbody 1 Answer
Wall jumping problem 1 Answer
Creating A wall Jump 0 Answers
Simple wall jump? 2 Answers