Double Jumps, Gravity & Variable Height with Unity Input System - 2D Platformer Unity #3

Опубликовано: 08 Февраль 2026
на канале: Game Code Library
27,401
609

*FREE Code script on my Patreon!!*
In this episode we'll be getting our player jumping, double jumping and jumping with a variable height using Unity's 'new' Input System! We'll also look into adding cool feeling to our game with gravity modifiers - making us fall faster or slower!

We'll be working with the Input System throughout this platformer series, so check out our future episodes for more implementations.

❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️
https://gamecodelibrary.itch.io/2d-pl...

All source code for all videos I have made and will make in the future can be found on my Patreon:
  / double-variable-88474511  

Check out the series previous videos:
   • Game Plan and Unity Setup -  2D Platformer #0  
   • Movement with Unity Input System -  2D Pla...  
   • Sprite Sheet to Tilemap -  2D Platformer U...  

Sprite sheet: https://www.kenney.nl/assets/1-bit-pl...

I'll be posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)

If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡

0:00 - Intro
0:10 - Unity Input System
1:05 - Jump
2:04 - Variable Jump Height
2:42 - Ground Check Layer
5:32 - Ground Check Script
6:12 - Fix Sticking to Platform (Friction)
6:38 - Double Jump
7:44 - Gravity Modifiers
9:36 - Slow Fall
9:51 - Fast Fall
10:18 - Outro