Ultimate 2D Platformer Controller in Unity (source code provided)

preview_player
Показать описание

Learn how to build an amazing player controller.

This Unity character controller is built using custom physics and incorporates all the hidden tricks to make it feel amazing. 2D player controllers can be difficult to get right, so hopefully this helps you along your way and gives your game a boost in productivity.

Features:
Variable jump height
Apex modifiers
Jump buffering
Coyote time
Clamped fall speed
Ledge detection

=========

Рекомендации по теме
Комментарии
Автор

This is an incredible resource (and also the Celeste 101 haha), both for actual usage or just studying it. Thank you so much for providing this! Keep doing amazing stuff :)

papaalex
Автор

Short, straight to the point, open source and with a very nice prototype : Perfect !

drkr
Автор

2:03 LMAO!! Fantastic video once again and this just inspired me to create a game

Ironlionmn
Автор

This is awesome and I definitely plan on testing out this code soon but at 2:04 that has to be intentional that that arrow looks like a particular part of the male anatomy haha.

omniclause
Автор

The level of quality (video itself, presentation, quality of work, your humor) and the speed you’ve been putting content out is incredible. Thank you my fine sir.

orwellwasright
Автор

my favorite of all these invisible tricks is clamped fall speed, it just feels so great to be able to land more precisely when your fall speed is clamped

mrmixedvideomaker
Автор

I just found this and i love it and how customizable it is and though it's a little bit slidy (at least for me) it's amazing and i'm gonna try incorparating some of these on my own when i am better at using unity

Ckayzed
Автор

Dude this is an amazing resource, I've played platformers for years and I never knew what "coyote time" was but the second you said the words I knew what you were talking about.

ianrash
Автор

adding these kinds of mechanics to games are what makes them enjoyable in my opinion. you can be a casual gamer and just do the basic stuff or someone very competitive who wants to really take advantage of every little thing and figure out all the mechanics and how to best use them. Apex Legends is a perfect example for this. You dont *need* to learn all the fancy movement tricks but if you do learn them and practice them and master them you can really distinguish yourself from the rest.

potatopassingby
Автор

This is awesome!
Also, for speedrunners: turning off Clamped Fall Speed should be a little faster :D

kuwertzel
Автор

Man… controls look perfect. Thank you bro. 🖤 Will help me a lot.

mayankbhaisora
Автор

Another level of depth to this is - speedrun controls - for e.g a forward down dash after a small jump lets u cover huge gaps in Celeste taking fractionally lesser times as compared to a normal jumping reaching its apex and so on .. game development is a deep deep rabbit hole ..

AR-xqnh
Автор

This is really cool. Great quick explanation

francescagreetham
Автор

It's great to explain all concept you can find in a controller, I used to use Sebastian Lague Platformer Controller implementation like base to implement my own and I found thoose tricks by myself later. And you give me some tricks I didn't have yet like vertical edge detection to correct movement. Thank you.

AkioJunichiro
Автор

wow this is so fluid not using unity but learnt alot from the logic

smokeback
Автор

Very nice controller feels really nice. I tried it for my project which contains slopes and this controller breaks wonderfully :D

Zicore
Автор

I almost don't want to go download this just to try constructing it myself...
Good stuff Taro, loving the content. <3

This-Was-Sparta
Автор

This is incredible! Thanks so much for making this. I just got into Unity and just could'nt get the character jumps feeling good at all. Amazing!

Mr_BetaMax
Автор

this video is incredibly well made, i'm currently making a subway surfers-esque game and yet this is still really useful information for my jump mechanic despite the two games being insanely different - just shows how absolutely brilliant this video is🫡

froodlenoodle
Автор

That's a top notch resource right there

GexTendies