How do you make your player jump in unity?

Updated on September 28, 2017 in [D] Game Dev. gossip
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
18 on September 17, 2017

Does anyone know how to make a block player in unity jump on ground?

UPDATE: OMMMMMGGGGG IT WORKS!!!! SORRY IF I WAS A PAIN IN THE BUM

  • Liked by
Reply
0 on September 18, 2017

There probably is someone who knows yeah

  • Liked by
Reply
Cancel
7 on September 19, 2017

If your player gameObject has a rigidBody attached to it, the simplest way is probably to apply a force with an upwards direction:

gameObject.GetComponent<RigidBody>().AddForce(Vector3.up , ForceMode.Impulse);

 

This will inject an “impulse” of vectorial magnitude = 1 in the up direction!

on September 19, 2017

Ok but could you give me the full code and what you do step by step because i’m a beginner in C#

on September 20, 2017

C’mon man I just want to learn how you do it! And by the way the YouTube tutorials are not working but I will try!

Guru
on September 20, 2017

You won’t learn by asking for full scripts. The only way you’ll learn is actually doing it yourself.

on September 21, 2017

I tried everything but nothing seems to work. That’s why I asked for you’re guyes help!!!

Guru
on September 22, 2017

No, you asked for a complete script, that’s not asking for help.

Do you have any code? If so post it.

Do you get any errors? If so post them.

on September 22, 2017

No I don’t have any script or a error. All I want is a jump script please anyone. I tried everything and watched every video on YouTube just please HELP ME!!

Show more replies
  • Liked by
Reply
Cancel
0 on September 25, 2017

*has

  • Liked by
Reply
Cancel
0 on September 27, 2017

If you are in desperate need for a tutorial on character movement:
https://www.youtube.com/user/Cercopithecan
He has some nice tutorials about character movement.

I also recommend to check out this channel:
https://www.youtube.com/user/Brackeys

They are currently collaborating on a RPG.

 

But before all that; learn some C# before attempting to make a game.

  • Liked by
Reply
Cancel
2 on September 27, 2017

Wow, that escalated quickly.

But do as AquaXV above me says and you will learn very nice stuff very quick.

The first thing I did was to watch and do these tutorials:

https://unity3d.com/de/learn/tutorials

There you will learn the very basics first.

 

on September 28, 2017

Thanks guys!!

on September 28, 2017

OMGGGGGGGGG IT WORKS THANKS GUYS SORRY I WAS A PAIN IN THE BUM

Show more replies
  • Liked by
Reply
Cancel