Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
By the end of this Unity tutorial, we will have created a smooth and consistent knockback that:
Works with Physics/Rigidbody2D Controller
Knocks back the player in ANY direction
Adds an (Optional) Constant Force
Takes Movement Input (Optional) into Account
Has Easy Acceleration Control using AnimationCurves
This is a GREAT knockback function that I created for our commercial game, Veil of Maia, and I wanted to share it with all of you.
I cover a lot here, so we're going to make this fast!
Link to Download the FREE 2D Asset Pack seen in this tutorial:
https://veilofmaia.com/tutorial-asset...
---
In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: https://assetstore.unity.com?aid=1100lwgBQ
---
Credits-----------------------------------------------------
Unity FixedUpdate Documentation Pic:
https://docs.unity3d.com/ScriptRefere...
Contents of This Video: ------------------------------------------
00:00 - Intro + Scene Explanation
00:55 - Explaining How the Knockback Will Work
02:00 - Setting Up the Knockback Script and Timer Functionality
04:39 - Combining Forces and Finishing the Knockback Method
06:38 - Adding Checks in Movement so There are No Conflicts
07:51 - Creating a Method to Call the Coroutine
08:53 - How to Pass In the Hit Direction
10:13 - Passing In the Input and Testing the Knockback
11:59 - Control the Knockback Acceleration with an AnimationCurve
Who We Are-------------------------------------
If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
Wishlist our Games:
Wishlist Samurado on Steam! - https://store.steampowered.com/app/23...
Wishlist Veil of Maia! - https://store.steampowered.com/app/19...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
/ sasquatchbgames
Keylight: (Note: We use 2 of these for our lighting setup)
Purchase in Canada: https://amzn.to/3UINapv
Purchase in USA: https://amzn.to/3hq7sWx
#unitytutorial #unity2d #unity3d
Auf dieser Seite können Sie das Online-Video Let's Make the BEST Knockback Function With COMBINED FORCES | Unity Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Sasquatch B Studios 12 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,925 Mal angesehen und es wurde von 190 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!