- Home /
Question by
_C1 · Apr 03, 2014 at 12:15 PM ·
jumpridgidbody
2D Player Move
I am able to get my player to move left and right but I do not know how to make the player jump using Ridgidbody2D. Could anybody help please? I am using C#. Thanks :)
Comment
Answer by waqasmajeed · Apr 03, 2014 at 12:34 PM
if (Input.GetKeyUp ("space")) Then go to Edit->project setting -> input . Set Space fey for jump.
Answer by king_ · Apr 03, 2014 at 05:41 PM
this is Physics-> if(Input.GetKey(KeyCode.Mouse0)){rigidbody2d.AddForce(new vector(0,5));}...replace 5 with anything you want
Your answer
Follow this Question
Related Questions
have 3rd person make a side jump -1 Answers
The faster my character goes the longer he jumps. 1 Answer
About character doublejumping. 1 Answer