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#

Devoted
on September 20, 2017

Don’t just except people will give you code for everything you need. You need to start doing things yourself. And there are already a lot of tutorials on this.

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
3 on September 25, 2017

You’re asking for a full script because you failed to Google it yourself. You said you looked at tutorials but nothing works. It’s not that the scripts doesn’t work. It’s you not being able to make them work. 

You should check scripts / tutorials other have made and try to understand them and make them suit your needs. Nothing is magically gonna work for you, you have to put in some effort. You can’t just go around Googling scripts and then scraping them all into one project. If you don’t understand those scripts you should go back to basics.

Or if something doesn’t work don’t immediately quit on it. Stay persistent and try to find the bugs. Why didn’t the tutorials work? Bugs? Errors? You can’t just try a script and if it doesn’t work move on.

on September 27, 2017

Nothing works I have been trying for 6 months now!

Wise
on September 27, 2017

My first jump script took me five years man, try harder!

Devoted
on September 27, 2017

I seriously doubt you’ve been trying to make your player jump for 6 months. People will quit after 2 days to a week if a thing doesn’t work.

What do you mean when you say nothing works? Maybe try to find one tutorial and follow it and UNDERSTAND it. If it doesn’t work maybe post the problem here. But make the post detailed. Give us the context, problem, errors and what’re you’re trying to do. Images, videos and gifs would be really helpful too.

We’re trying to help you understand that just complaining nothing works won’t get you anywhere, yet you fail to do so. And why do you think if we give you the script it will work. You already tried using other scripts and none worked, right? Why’s this situation any different?

Show more replies
  • 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