Тёмный

Unity 2D Platformer Tutorial 10 - Making the Player Jump 

Daniel Wood
Подписаться 20 тыс.
Просмотров 23 тыс.
50% 1

This video demonstrates how to write code to add jumping to player movement in a 2D platformer game in Unity.
Code for this tutorial - github.com/danielkwood/Unity2...
Unity website - unity.com
GitHub - github.com/danielkwood/Unity2...
Free Pixel Space Platform Pack - assetstore.unity.com/packages...

Хобби

Опубликовано:

 

26 сен 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@silvacook000
@silvacook000 Год назад
Thank you! very helpful
@seesonrise
@seesonrise Год назад
Thanks this very helpful
@icisac7350
@icisac7350 2 года назад
TY for the video
@FF_2wiCe
@FF_2wiCe Год назад
ty so much 😁😁😁😁😍😍😍😍
@alexanderekblom8093
@alexanderekblom8093 Год назад
This is some really good stuff so far, great pacing! I'm a bit curious however, how come you're setting the velocity in the jump function, instead of AddForce? Is it easier to get a precise/consistent jump height that way, or is it for consistency in the code?
@junglejim6674
@junglejim6674 Год назад
you should be using velocity.AddForce() instead of directly changing the rigidbody's velocity, you are correct.
@FusiDevTime
@FusiDevTime 11 месяцев назад
Thanks for the tutorial but I also have a constant force working on the player, how can I make the constant force stop whilst the player is jumping so the player does not go all over?
@review.film.channel
@review.film.channel Год назад
How do you turn the player's face to the left? thanks!
@robinut
@robinut Год назад
thenks
@liamdude4
@liamdude4 16 дней назад
please help i just get a bunch of errors when i did this tutorial
@DuckMan01234
@DuckMan01234 Месяц назад
it keeps on saying The name 'player' does not exist in the current context
@mollytov1999
@mollytov1999 9 месяцев назад
i used your script but the character just flies up what should I do?
@MrPeaceTalker
@MrPeaceTalker Год назад
Now I have a small problem... I have finished scripts for movement including jumping... I put the script on the player along with a rigid body and box collider, mainly because I am using a square sprite.... it can move left and right but not jump... I have a project I copied from where it works, but still, I have no idea what I have done wrong since jumping does not work. Nothing wrong with the script,I checked. Must be something wrong with one of my assets. Plz help.
@bloodorangebrisktea87
@bloodorangebrisktea87 Год назад
I just had the same problem, it was because my gravity was too strong! check mass and gravity on your RigidBody2D
@justaperson8661
@justaperson8661 Год назад
@@bloodorangebrisktea87 Hi! dou you have an idea of a recommended number of mass and gravity?
@firey9941
@firey9941 Год назад
@@justaperson8661 1 & 1 is good in my opinion
Далее
Simple Jump in Unity 2D (Unity Tutorial for Beginners)
17:48
Idle, Run and Jump Animations - Platformer Unity 2D
10:13
UNITY 3D PLAYER MOVEMENT in 2 MINUTES! FPS Shooter
2:12
How to jump in Unity (with or without physics)
16:09
Просмотров 39 тыс.
How to Jump in Unity - Unity3D Fundamentals
10:15
Просмотров 138 тыс.
ЛЕТНИЕ КОСТЮМЫ 😍
0:38
Просмотров 1,3 млн
😱 Выхлоп для велосипеда
0:33
Просмотров 4,1 млн