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

  Рет қаралды 295,423

Tarodev

Tarodev

2 жыл бұрын

Source & game: github.com/Matthew-J-Spencer/...
Extended source: / tarodev
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
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev

Пікірлер: 696
@orwellwasright9604
@orwellwasright9604 2 жыл бұрын
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.
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Does that mean you have the source code? Because what's in the description is a different one that uses Rigidbody and a Capsule Collider instead of a box.
@LeGentleMentlegen
@LeGentleMentlegen 2 жыл бұрын
Hey! I watched your video about a week ago, I was desperately searching for a good 2D character controller whilst trying to learn Unity, and after some work I've managed to implement all the features you showed in your video using your code as an inspiration when I needed to, thank you so much for uploading this!
@howdy9517
@howdy9517 2 жыл бұрын
Woah, Props to you to decide to give us a source for free. While you could easily sell this for some money. Mad respect.
@papaalex4961
@papaalex4961 2 жыл бұрын
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 :)
@Tarodev
@Tarodev 2 жыл бұрын
Hopefully it can help some people out :)
@mayankbhaisora2699
@mayankbhaisora2699 2 жыл бұрын
@@Tarodev It will help so many people bro… Thank you. 🖤
@ItsTheAlex
@ItsTheAlex Жыл бұрын
hey papa alex, do you know if this code would work if i just straight up copied it into my unity project?
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the code that doesn't uses Rigidbody and a Capsule Collider like he said in the video?
@Mr_BetaMax
@Mr_BetaMax 2 жыл бұрын
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!
@YOSFP
@YOSFP 2 жыл бұрын
I have seen many platformer scripts and plugins, but this seems to be the best one I have seen yet. Going to try it out later, thanks so much like always :)
@crtus2444
@crtus2444 2 жыл бұрын
I don't need something like that at the moment but dude, it is perfect for 2D player controller. Keep up the good work!
@drkr
@drkr 2 жыл бұрын
Short, straight to the point, open source and with a very nice prototype : Perfect !
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Yeah but there is no source. Do you have it ?? That one has Rigidbody and a Capsule Collider in
@IceForgeOfficial
@IceForgeOfficial Ай бұрын
This is so perfect! The controls looks smooth and perfect
@Lededev
@Lededev 8 ай бұрын
This gave me a lot of insight on platformer polishement. You'r making great material, keep it up!
@sohrabhamza3805
@sohrabhamza3805 2 жыл бұрын
Thank you! I'm always trying to learn what makes movement more satisfying.
@AkioJunichiro
@AkioJunichiro 2 жыл бұрын
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.
@tommallama9663
@tommallama9663 2 жыл бұрын
Beautiful! Thank you so much for sharing this! And for those who would rather make your own, try to look into some of the key words mentioned and making those mechanics one by one. It's a great way to learn character controllers but physics and other things as well.
@mayankbhaisora2699
@mayankbhaisora2699 2 жыл бұрын
Man… controls look perfect. Thank you bro. 🖤 Will help me a lot.
@ObitoUchiha-id1nq
@ObitoUchiha-id1nq Жыл бұрын
Subscribed. Excellent video. Frewt movement. That cude felt so smooth so proffesional.
@fuzzy-02
@fuzzy-02 2 жыл бұрын
Bro I really needed something like this (and not made like 7years ago), as I am studying an tinkering with Unity. This is both extremely good for me to use and focus on other aspects or treat as research material. +Subbed
@francescagreetham1804
@francescagreetham1804 2 жыл бұрын
This is really cool. Great quick explanation
@rafa_guitar
@rafa_guitar 2 жыл бұрын
Awesome, well done! Thank you so much for sharing!
@bwulf
@bwulf 2 жыл бұрын
I'm building a fully packed metroidvania and it already has almost everything you've implemented on this package, except for the ledge detection when jumping. So, I'm going to download it and give it a try! Thank you for your content, it's really great!
@good1742
@good1742 Жыл бұрын
What's it called? Or did u give up after 6 months
@bwulf
@bwulf Жыл бұрын
@@good1742 It's called WIZ and I'm still working on the project. Since I'm solo developing it, it's taking a while lol But you can wishlist it on steam
@kepler1175
@kepler1175 Жыл бұрын
​@@bwulf wishlisted. looks cool
@Firebunny26
@Firebunny26 Жыл бұрын
​@@bwulf your game looks amazing
@kenneth5095
@kenneth5095 Ай бұрын
Did you manage to implement the ledge detection? I have been trying and I cannot use the code used here to nudge the player up when they barely missed the platform's ledge could you please help me?
@sfuperman56
@sfuperman56 2 жыл бұрын
This is incredibly helpful, thank you so much!
@mertvanlioglu
@mertvanlioglu 2 жыл бұрын
These contents are real unique and important to know. I hope you keep creating them.
@DANtheTANK
@DANtheTANK 2 жыл бұрын
This looks awesome, thank you for this!
@thesilentwisp
@thesilentwisp 2 жыл бұрын
Wow. Just wow. Definitely sharing this.
@notDiru
@notDiru 2 жыл бұрын
Even the most basic scenario it's fun with those controls!
@Rovsau
@Rovsau 2 жыл бұрын
Dude. That's some awesome community service. Kudos.
@omniclause4986
@omniclause4986 2 жыл бұрын
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.
@JBtheWARVillain
@JBtheWARVillain 2 жыл бұрын
Quickly and easily you've become my main channel to watch on KZbin above anything else. I'm going to learn so much heading into my 2nd year as a Game Dev, so much more to learn but am just getting started. All your content is amazing, much thanks :)
@Tarodev
@Tarodev 2 жыл бұрын
Much appreciated 🙏
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the code? Because @Tarodev switch the code to use Rigidbody and Capsule Collider.
@bakor111
@bakor111 2 жыл бұрын
I recommended your channel to so many friends, and I won't stop! Great videos!
@Tarodev
@Tarodev 2 жыл бұрын
I appreciate the love, thank you 🙏
@devegram
@devegram 2 жыл бұрын
People like you drives the community further keep up the good work
@mrstruijk
@mrstruijk 2 жыл бұрын
This looks awesome! Thanks man!
@frederickfreund1957
@frederickfreund1957 Жыл бұрын
wow this is amazingly informative. And in just under three minutes! thanks so much :)
@jqmichael13
@jqmichael13 2 жыл бұрын
Happened upon this video by chance and so glad that I did. Concise, to the point and the fact that you're sharing this source code is very cool. +1 sub
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the source code? Because the code he has right now is not the code he is using on the video
@deathcatthor
@deathcatthor 10 ай бұрын
Thanks for the controller, very helpful video and well made!
@backbenchgamedev4117
@backbenchgamedev4117 2 жыл бұрын
You channel is one of the finest in game dev tutorial now - short, precise and easy to understand. I have followed some of your older tutorials - and you have improved a lot as a creator - over time. Also would like to thank you for providing - all the resources and links in descriptions - and not creating a paywall for people to get your code. Appreciate it.👌
@Tarodev
@Tarodev 2 жыл бұрын
Thank you for saying that. I like watching some of my older videos to see how I'm progressing. Glad somebody else noticed too
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the code?? @Tarodev has switch it out
@daka.notatp
@daka.notatp 2 жыл бұрын
short, effective and USEFULL perfect video 10/10
@svendpai
@svendpai 2 жыл бұрын
actually insane, great resource!
@ianrash4944
@ianrash4944 Жыл бұрын
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.
@Tarodev
@Tarodev Жыл бұрын
Tricks of the trade 😉
@TylerLarson
@TylerLarson 2 жыл бұрын
OMG the unity 2d controller that is ACTUALLY worth downloading. Nice work, good research, and thank you.
@luigidreemurr6034
@luigidreemurr6034 Жыл бұрын
I love this!! If I don't just outright use this I know I'll learn a lot. Thank you so much!!
@MellioMusic
@MellioMusic 2 жыл бұрын
I actually logged into both my accounts to sub twice. This is a perfect tutorial. Short, sweet and resources provided with concise explanations. Thank you so much!
@Tarodev
@Tarodev 2 жыл бұрын
Lol damn bro, thanks
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Yeah it would be a perfect tutorial if he had the source code and not something else
@Dylen
@Dylen 2 жыл бұрын
Dude thanks, this is exactly what I was looking for
@onem0repixel
@onem0repixel 2 жыл бұрын
Everything is good on this video. Like everything. Not only the thing I was searching for.
@TccKaiCi
@TccKaiCi Жыл бұрын
Great! This is what i was looking for
@abdelbarimessaoud242
@abdelbarimessaoud242 2 жыл бұрын
Incredible video just subbed hope to see more tricks !
@PixelbugStudio
@PixelbugStudio 2 жыл бұрын
Woww😳. Awesome dude. Keep it up and Thanks for making this.
@pabloalves
@pabloalves Жыл бұрын
Its incredible how much info can fit in a 3min video.. congrats
@megacharizardx2386
@megacharizardx2386 2 жыл бұрын
You my friend, is making the world a better place. Thank you!
@raymondcox2291
@raymondcox2291 2 жыл бұрын
Thank you so much for the awesome, and concise examples. Extra kudos for sharing the source code. What a god 💯
@jitsmapper4438
@jitsmapper4438 4 ай бұрын
Good shit. Became a patron for the extended controller (worth it)
@feifan19
@feifan19 Жыл бұрын
this is amazing, very appereciated
@arieltheartist3161
@arieltheartist3161 2 жыл бұрын
Omg, this is some god tier mechanics. Saved and Subbed
@vaa33nn65
@vaa33nn65 26 күн бұрын
Thank you for the video! no nonsense and to the point. Thanks for the source code as well!
@coolblasterb4066
@coolblasterb4066 3 сағат бұрын
Brilliant video! Really excited to give this a go! You’ve done an amazing job continuously contributing to this until today (I can see you’re still active in the comments)
@xianead18
@xianead18 2 жыл бұрын
Great content! I hope you never stop doing these stuffs :< Your other more intermediate lessons are really helpful for those who are having a hard time understanding them
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
He never started. The code he talking about in this video is not there..
@filipe_lopes
@filipe_lopes Жыл бұрын
I just subbed from a different video and I gotta say thank you for this one as well, but I just can't get over that squishy sound when it lands after a jump, it is vile how absolutely sloopy it sounds😆
@Tarodev
@Tarodev Жыл бұрын
Especially the slow mo splat :D
@21leowheeler
@21leowheeler 2 жыл бұрын
Very new to unity, thanks for the gift, should help me get motivated to do and learn more.
@morneerasmus1789
@morneerasmus1789 Жыл бұрын
Absolutely brilliant, the most important mechanic being the wet splat sound ofcourse.
@Tarodev
@Tarodev Жыл бұрын
Oh yes 😉
@ItsLeopard_
@ItsLeopard_ 2 жыл бұрын
this is amazing, thank you so much!
@zaidmermam2524
@zaidmermam2524 2 жыл бұрын
what a fricking amazing channel !! so happy my friend told me about this
@ast3077
@ast3077 7 ай бұрын
Bro much appreciated, Been on my journey as a solo dev and this is an invalubale source, amound others. Thank you
@Tarodev
@Tarodev 7 ай бұрын
I just now updated the free version of the controller. Go check it out :)
@jessecooley530
@jessecooley530 11 ай бұрын
Wow I've been working on platformer games for yyyyeeeearsss and am hearing some of this for the first time tysm
@arcuny.8680
@arcuny.8680 2 жыл бұрын
Simply awesome. Thank you :)
@Ironlionm4n
@Ironlionm4n 2 жыл бұрын
2:03 LMAO!! Fantastic video once again and this just inspired me to create a game
@datablob
@datablob 2 жыл бұрын
Now I am hyped to revisit my paused astro platformer project! 🙏
@soverain
@soverain 2 жыл бұрын
Man this is invaluable resources, thank you very much for that! Keep up the good work!
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
"invaluable resources" ? He replaced the code with another
@skippythemagnificent8103
@skippythemagnificent8103 2 жыл бұрын
Have to take the time to echo whats said before such an excellent video, to the point and... and a free quality learning resource.. wow..., thank you :)
@adamcervenec6897
@adamcervenec6897 2 жыл бұрын
Dude this is just a huge amount of work you gave away for free. Thanks so much
@QuietBenchZen-om8um
@QuietBenchZen-om8um 2 ай бұрын
This was a big help to me, thanks!
@elliotthood1719
@elliotthood1719 Жыл бұрын
Just a heads up, if you are trying to use this character controller, the corner-nudging code doesn't work with tilemaps or colliders with complicated geometry. Instead get the nearest position of the collider you run into and go from there. (it needs some tweaks after that)
@KuariThunderclaw
@KuariThunderclaw Жыл бұрын
Definitely will have to be looking into this.. I'm not entirely understanding everything the code is doing yet, but this at least gives me a hint of something to look at.
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the old code? I want to see if I can fix it
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
@@KuariThunderclaw I can do for you. For free... first thing on coding, you need to understand EVERYTHING in your code. Unless it's not yours
@DylanGreene9
@DylanGreene9 2 жыл бұрын
Yo thanks dude this is awesome, subbing.
@millerbyte5579
@millerbyte5579 Жыл бұрын
2:02 I see you. Yes, I'm burning through all your videos. Thanks again!!
@limbo1n
@limbo1n 2 жыл бұрын
Got the controller up and running in minutes. Feels great! I have to dig in a little as I'm finding he doesn't like slopes too much just yet.
@Tarodev
@Tarodev 2 жыл бұрын
Indeed, zero slope detection right now :P
@bobbville
@bobbville Жыл бұрын
It makes it easier to handle slopes of you use ray casts to check for ground🍻🍻
@maiconsansao1
@maiconsansao1 2 жыл бұрын
great content, thank you so much for this
@LennoxParsec
@LennoxParsec Жыл бұрын
This is an invaluable resource, thank you!
@Tarodev
@Tarodev Жыл бұрын
You're most welcome
@mrmixedvideomaker9767
@mrmixedvideomaker9767 2 жыл бұрын
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
@Tarodev
@Tarodev 2 жыл бұрын
It's one of the lesser loved ones, that's for sure. But remove it and it's absolute chaos.
@tamertamertamer4874
@tamertamertamer4874 2 жыл бұрын
Great video ! I’m not going to use the character controller but it has nice things to hear Per example for variable jump height in my game I just divided the vertical speed which makes it feel really different than just adding downward momentum
@This-Was-Sparta
@This-Was-Sparta 2 жыл бұрын
I almost don't want to go download this just to try constructing it myself... Good stuff Taro, loving the content.
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Too bad if you didn't downloaded it because I'm looking for it. He switch the code of the video with another.
@PauloHSousa237
@PauloHSousa237 2 жыл бұрын
I'm showing your channel to all my friends, keep it up
@Tarodev
@Tarodev 2 жыл бұрын
Appreciate it Paulo
@timothymakesgames
@timothymakesgames 2 жыл бұрын
beautiful content, love ya work
@ravd123
@ravd123 Жыл бұрын
Wow that looks awesome!
@GexTendies
@GexTendies 2 жыл бұрын
That's a top notch resource right there
@kingreinhold9905
@kingreinhold9905 2 жыл бұрын
Holy cow, thanks man for giving it away for free... You're a hero, you could have sold it in the asset store or something, but you woke up and chose generosity 🙏
@relentingVids
@relentingVids 2 жыл бұрын
Fantastic! Thanks for sharing!
@random_precision_software
@random_precision_software 2 жыл бұрын
Ill love to check that out!
@visclo4782
@visclo4782 2 жыл бұрын
wow that guy is building a portfolio haha ^^ nice project and thank you very much! this is such a great resource for starting game dev!
@sanghyuncho473
@sanghyuncho473 11 ай бұрын
This guy is legend himself. Finally an reliable advanced tutorial/resource to watch after Brackeys.
@Tarodev
@Tarodev 11 ай бұрын
Thanks for saying that, brother 🙏
@fuzzy-02
@fuzzy-02 2 жыл бұрын
The sound when they character hit the ground is so appealing lmao
@vishalkhombare
@vishalkhombare 2 жыл бұрын
Awesome Work!! Awesome share!!
@kubstoff1418
@kubstoff1418 2 жыл бұрын
Dude, this is awesome
@AzuriumOfficial
@AzuriumOfficial 2 жыл бұрын
Actual poggers. Thanks!
@eznogamee3704
@eznogamee3704 2 жыл бұрын
this is a true legend, thank you for providing the tutorial
@Tarodev
@Tarodev 2 жыл бұрын
You're welcome brother
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
He doesn't even give the source like he says he does. It's different code.
@textingedits9419
@textingedits9419 Жыл бұрын
2:02 sus doodle. Fantastic resource! Just found your channel today and I'll be deep diving through all of this fantastic content.
@RaidenHeaven
@RaidenHeaven 4 ай бұрын
Do you have the source? Because he changed the code
@PauloHSousa237
@PauloHSousa237 2 жыл бұрын
You're awesome, thank you very much. Good explanation
@smokeback
@smokeback 2 жыл бұрын
wow this is so fluid not using unity but learnt alot from the logic
@dfadir
@dfadir 2 жыл бұрын
This is gold, Taro!
@Memeous415
@Memeous415 9 ай бұрын
AMAZING VIDEO!!!!!
@lost.250
@lost.250 2 жыл бұрын
I'm becoming a fan of this channel. Awesome stuff! :D
@Tarodev
@Tarodev 2 жыл бұрын
Slowly winning you over?
@lost.250
@lost.250 2 жыл бұрын
​@@Tarodev Yes, stuff that you are doing is high quality and well explained. Thank you, keep up doing great stuff :)
@styxrakash4639
@styxrakash4639 11 ай бұрын
This is S+ tier man keep it up
@aminedev_
@aminedev_ Жыл бұрын
maybe adding the ability to modify acceleration and deceleration the way you want for making some ice maps for example so the player slowly slides on the platform, still it is an ultimate controller and i love it
@darrelmeme4986
@darrelmeme4986 2 жыл бұрын
I love you thanks for the source code it really helps
Unity Script Templates - Changing default script content
0:42
Why Does Celeste Feel So Good to Play?
17:34
Game Maker's Toolkit
Рет қаралды 2,6 МЛН
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 32 МЛН
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 4,1 МЛН
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 52 МЛН
Mini Jelly Cake 🎂
00:50
Mr. Clabik
Рет қаралды 17 МЛН
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,3 МЛН
Improve Your Platformer with Forces | Examples in Unity
7:01
Dawnosaur
Рет қаралды 162 М.
Pixel Art Animation. Reinvented - Astortion Devlog
4:41
aarthificial
Рет қаралды 2,1 МЛН
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 123 М.
Making a VIRUS for a Game Jam (and almost winning)
9:36
Deynum Studio
Рет қаралды 220 М.
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
In Search Of Unique Indie Game Mechanics - 2D Platformers
5:11
Results After Releasing my First Game on Steam
15:07
Pontypants
Рет қаралды 1,9 МЛН
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 494 М.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 32 МЛН