Uploaded October 2019 | Updated September 2026, 2 weeks ago
In this video we show you how to setup perfect Mario-like jumping in Unity.
SUBSCRIBE: bit.ly/2Js78lE
============
SUPPORT: patreon.com/pressstartclub
In this video, we cover:
0:40 - Using a Ground Layer to detect if player is touching the ground
1:23 - Understanding How RayCasts work
2:15 - Applying a Physics2D.Raycast to check for Ground Collision
3:16 - Testing and Tweaking Ground Collision
3:55 - Using Gizmos.DrawLine
5:10 - Applying a vertical force for jump
6:25 - Adding Input Control
7:25 - Explaining Fall Multiplier
8:00 - Modifying Gravity and Physics
9:30 - Testing out our perfect jump
10:00 - Button Delay
10:45 - Adding a Jump Delay
11:50 - Adding RayCasts to both sides of our collider
13:20 - Setting up a Jump Squeeze Animation
14:55 - Applying the Jump Squeeze for landing
15:42 - Falling Animation
16:26 - Final Product
PART 1: Animation
youtube.com/watch?v=Gqel6Ed4LpY
PART 2: Running
youtube.com/watch?v=USLp-4iwNnQ
"Better Jumping in Unity With Four Lines of Code" by Board to Bits:
youtube.com/watch?v=7KiK0Aqtmzc
COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2019/10/15/104/character-jumping.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
In this video we show you how to setup perfect Mario-like jumping in Unity.
SUBSCRIBE: bit.ly/2Js78lE
============
SUPPORT: patreon.com/pressstartclub
In this video, we cover:
0:40 - Using a Ground Layer to detect if player is touching the ground
1:23 - Understanding How RayCasts work
2:15 - Applying a Physics2D.Raycast to check for Ground Collision
3:16 - Testing and Tweaking Ground Collision
3:55 - Using Gizmos.DrawLine
5:10 - Applying a vertical force for jump
6:25 - Adding Input Control
7:25 - Explaining Fall Multiplier
8:00 - Modifying Gravity and Physics
9:30 - Testing out our perfect jump
10:00 - Button Delay
10:45 - Adding a Jump Delay
11:50 - Adding RayCasts to both sides of our collider
13:20 - Setting up a Jump Squeeze Animation
14:55 - Applying the Jump Squeeze for landing
15:42 - Falling Animation
16:26 - Final Product
PART 1: Animation
youtube.com/watch?v=Gqel6Ed4LpY
PART 2: Running
youtube.com/watch?v=USLp-4iwNnQ
"Better Jumping in Unity With Four Lines of Code" by Board to Bits:
youtube.com/watch?v=7KiK0Aqtmzc
COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2019/10/15/104/character-jumping.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials


![Unity - How to Detect Collision in C# [Using Colliders]
In this tutorial we discuss adding colliders on our objects so that we can detect collision within our script.
SUBSCRIBE: https://bit.ly/2Js78lE
In this video, you will learn:
0:55 - Choosing the right collider for your environment
1:05 - How a collider works
1:30 - 2D and 3D colliders to use
2:05 - Adding a Circle Collider 2D
3:35 - Adding a Box Collider 2D
4:19 - How to use isTrigger
4:45 - Detecting Collision in C#
6:10 - Using Instantiate to load an explosion
7:00 - Destroy on Collision
COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2018/11/1/75/collision-detection.html
PREVIOUS VIDEOS:
Movement: https://www.youtube.com/watch?v=BxO59UyXPLc
Obstacles: https://www.youtube.com/watch?v=E7gmylDS1C4
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
WEEKLY DEVELOPER STORIES AND TIPS:
https://pressstart.vip/newsletter Unity - How to Detect Collision in C# [Using Colliders]](https://i.ytimg.com/vi/ZoZcBgRR9ns/mqdefault.jpg)



![Unity Movement [RigidBody vs Translate]
In this video I go over a few methods on how to move a player or an object around the screen. I think share my thoughts on which method is best for each use.
SUBSCRIBE: https://bit.ly/2Js78lE
In this video I discuss:
0:28 - Moving An Object Using Translate
2:20 - Problems with using Translate
2:50 - Using RigidBody for Physics & Collisions
5:00 - 3 Ways to Move An Object with RigidBody
5:10 - Using AddForce()
6:15 - Using Velocity
7:05 - Using MovePosition
TO COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/10/19/71/rigidbody-vs-translate.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
Spawning Obstacles video:
https://www.youtube.com/watch?v=E7gmylDS1C4 Unity Movement [RigidBody vs Translate]](https://i.ytimg.com/vi/ixM2W2tPn6c/mqdefault.jpg)



![Unity - How To Save Game / Data [PlayerPrefs]
In this video you will learn how to save player data using Unitys built-in component, PlayerPrefs.
SUBSCRIBE: https://bit.ly/2Js78lE
Patreon: https://www.patreon.com/pressstartclub
You will learn how to:
Store a String
Store a Integer
Store a Float
and how to:
Retrieve a String
Retrieve a Integer
Retrieve a Float
COPY & PASTE:
https://pressstart.vip/tutorials/2018/09/14/92/unity-saving-game-data.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials Unity - How To Save Game / Data [PlayerPrefs]](https://i.ytimg.com/vi/y7RPVvwjrsA/mqdefault.jpg)