2D Platformer Crash Course in Unity 2022
Guide showing how to create a 2D Platformer game from scratch in Unity 2022
In this video we start setting up the project as a URP Unity project using Unity 2022.1.20f1
Reference Project Patreon Download ➣ https://www.patreon.com/posts/73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
Steps in Video
- Make 2D URP Package - PlatformerCrashCourse
- Set Preset for Textures, 16px x 16px grid
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:34 - Create Project as URP
01:34 - Creating a TextureImporter Preset
05:49 - Wrapup
Download and Installing the art assets used in the project. We also create the basic directory structure in the assets folder to keeps things organized nicely.
Art Packs Used in Project
art/rvros-adventurer https://rvros.itch.io/animated-pixel-hero Adventurer 1.5, Hand Combat, Bow
art/freeknight https://aamatniekss.itch.io/fantasy-knight-free-pixelart-animated-character
ui/fonts/ https://managore.itch.io/m5x7 Typeface / Font
art/freecutetileset https://aamatniekss.itch.io/free-pixelart-tileset-cute-forest For Tilesets
art/henrysoftware-freepixelfood (Sprite folder only) https://henrysoftware.itch.io/pixel-food Free Pixel Food (Health Pickups)
art/kyrises-rpg-icon-pack https://kyrise.itch.io/kyrises-free-16x16-rpg-icon-pack
art/luizmelo_Monsters_Creatures_Fantasy https://luizmelo.itch.io/monsters-creatures-fantasy FOR MONSTERS (GET 1.0 and then add 1.2 & 1.3 to it)
audio/music/10 Battle1 (8bit style) https://youfulca.itch.io/legendary-jrpg-battle-music-pack/ 8bit Battle 1 Music
Assets/Audio/SFX/RPG_Essentials_Free https://leohpaz.itch.io/rpg-essentials-sfx-free SFX
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
Modified Arrow PNG ➣ https://freeimage.host/i/bTMg6J
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:16 - #1 art/rvros-adventurer
00:43 - #2 art/freeknight
00:52 - #3 m5x7 font
01:03 - #4 art/freecutetileset
01:17 - #5 art/henrysoftware-freepixelfood
01:26 - #6 art/kyrises-rpg-icon-pack
02:01 - #7 art/luizmelo_Monsters_Creatures_Fantasy
02:25 - audio/music/10 Battle1 (8bit style)
02:40 - #9 Assets/Audio/SFX/RPG_Essentials_Free
02:50 - Creating Art Folders for Assets
03:52 - Installing Art Packs
06:06 - Installing Font, Music, and Sound Effects
07:17 - Arrow Image (Check Download Links)
07:37 - Checking Texture Presets on Imported Assets
How to use the Package Manager to install Cinemachine and Input System inside of Unity 2022. To finish the project setup, how to turn off Domain Reload in playmodesettings to enter play mode significantly faster while we're developing our game.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
0:00 What to Expect
0:51 Installing Cinemachine and InputSystem
1:54 Playmode Options - Turning Off Reload Domain
How to add a basic tiling background to your game and make sure it displays behind players, enemies by using a custom background sorting layer.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:22 - Renaming Scene
00:46 - Creating Background in Scene
Add left and right movement to your platformer game by using the PlayerInput component from the new InputSystem Unity package.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:45 - Setting Up Player GameObject
03:11 - Making a Player Prefab
06:09 - Player Controller Script First Look
07:05 - PlayerInput Component
10:45 - Get Move Input from PlayerInput
13:24 - Setting Velocity on Rigidbody
17:54 - Link Method to UnityEvent Invoke
Adding a 2D Follow Camera to track your platformer character's movements in Unity 2022 using the Cinemachine package.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - Creating a Cinemachine 2D Camera
00:51 - Player Follow Settings
How to setup Parallax background for a 2D unity platformer game.
Based on AdamCYounis's original parallax script https://www.youtube.com/watch?v=tMXgLBwtsvI
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:21 - Scripting Parallax Effect
Create walk, run, and idle animations and set them up in the Animator state machine to have transitions that go between each other when boolean animator properties are set to true or false as conditions. Also, I show how to flip a game object using local scale to also effect any other components like colliders on that game object to flip as well!
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:26 - Opening Animator and Animation Windows
01:56 - Creating Walk Animation Clip
04:42 - Walk Animation
05:17 - Run Animation
05:41 - Transitioning Between Animations
11:49 - Controlling Animation Parameters from Player Controller Script
17:26 - Adding Functions to Call to Run and Move Input Events
19:31 - Run Speed and Setting Current Speed
21:57 - Flipping Direction with Local Scale
26:07 - Why Flip Scale and not Sprite?
27:17 - Wrapup
Tutorial on keeping track of animator parameters names across your scripts by using a class with static strings referenced across your project so that all the hard coded string values are in one, easily reusable place.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
How to build the ground for a game level using tileset map building tools inside of Unity 2022.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:34 - Creating a Tile Palette
05:03 - Drawing Tilemap and Tilemap Collisions
08:00 - Player CapsuleCollider2D
09:37 - Building a Game Level
12:13 - Ground Sorting Layer
13:09 - Expanding Background Size
14:03 - Wrapup
How to add a jump action for a platformer controller and management movement animations while in the air. This is part of my Unity 2022 Platformer Crash course.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
01:02 - Touching Directions - Ground Check
09:11 - IsGrounded Animation Parameter
10:58 - Rising & Falling Air States
14:38 - Controlling Air State with Y Velocity
16:27 - Exit Air State Tree
18:07 - On Jump Pressed
24:56 - Stop Movement at Wall
31:10 - Air Walk Speed
32:52 - Wrapup
How to setup an attack animation that locks movement on the player with a StateMachineBehaviour and returns to the ground movement states when the attack is complete.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:39 - Making Attack Animation State
03:29 - Create Attack Input Action
05:43 - Exit from Attack State
06:44 - Lock Movement State Machine Behaviour
12:13 - Responding to Move Lock in Player Controller
13:51 - Wrapup
First part in making a knight enemy for a 2d platformer from scratch. This video focuses on the movement of the knight character including using wall checks to flip the knights movement direction to the opposite.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:56 - Map Cleanup
01:15 - Creating Knight Game Object
02:12 - Sprite Sheet Pivot Point
05:24 - Knight Prefab and Basic Components
07:08 - Knight Movement Script
08:14 - Flip Direction when at Walls
15:33 - Physics Layers and Collisions
21:31 - Player & Knight Sorting Layer
22:08 - Wrapup
Setting up attack triggers with a detection zone and adding many animations states to our knight enemy.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:34 - Knight Animations Run, Attack, Hit, Death
05:00 - Knight Animator State Machine Setup
07:02 - Attack Condition
08:46 - Detection Zone
10:57 - Detection Zone Script
15:20 - Testing Attack
16:17 - Slower Knight Attack
17:34 - CanMove False on Attack
20:14 - Stop Move over time with Lerp function
22:18 - Wrapup
Creating a separate script where a character can be hit and take damage and setting up transitions to player or enemy character death states by checking the health of the character.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:27 - Damageable Component Script
03:42 - Hit for Damage Method
06:49 - Testing Hit for Damage
07:37 - Transition to Death State
08:17 - Turning Off Transition to Self for Animation State
09:12 - Player Death State
11:24 - IsAlive Reference on Player Controller
12:26 - FadeRemoveBehaviour
Making sword attacks deal damage to enemies or players with a knockback movement applied on hit.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
0:00 What to Expect
0:26 Knight Sword Swing Attack
4:09 Attack Component Script
6:56 Set Up Attack Layer and Collider
8:40 Testing and Adjusting Knight Attack
10:29 Turning On Attack Looping
11:33 FIX: Health less than 0 Alive Check
15:43 Respond to Hit with UnityEvent
18:08 Apply Knockback OnHit
18:37 Hit Trigger
21:39 Player Hit Animation
22:36 Player Hit Transitions
23:17 IsHit on Exit set to False
25:20 Set Hit Trigger
26:17 Lock Velocity on Player Controller
27:12 FIX: SetBoolBehaviour ValueOnExit
27:44 Knockback and LockVelocity Testing
30:05 Player Attack
32:22 Moving Velocity Lock to Damageable Component
34:54 Knight Damaged and Hit State
38:55 FIX: Attack Collider Position Flip with Scale
41:10 FIX: Attack Knockback Direction Flip
42:45 Wrapup
Finishing up the knight enemy with cliff detection and an attack cooldown timer.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:15 - Attack Timer
00:55 - SetFloatBehaviour Script
01:55 - Set Attack Cooldown
05:17 - FIX: Removing hasTarget condition to allow attack to exit StateMachine
06:12 - Add AttackCooldown Condition to Attack Exit
07:21 - Knight Cliff Avoidance
11:17 - Switch Cliff Detection to Event to Delay Check
14:10 - Wrapup
Guide on how to make damage show above a player or enemy when they take damage from an attack in Unity 2022. Part of the 2D Platformer Crash Course.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:50 - Creating Damage Text Object
03:28 - Health Text Script
05:55 - Fade Text Out
08:59 - Create Damage Text Instance on UnityAction
18:54 - Setting Up UI Manager and Testing Damage Text
19:51 - FIX: Turn CharacterEvents into UnityAction
21:13 - Increase Text Size
21:43 - Wrapup
Give your player some food or a health potion to heal with a trigger collider and show floating text with a healing event.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:11 - Health Pickup GameObject
01:09 - Health Pickup Script
04:58 - Add Collider2D to Health Pickup
05:17 - Make Pickup Physics Layer
05:59 - FIX: Health Is Higher than Max Health
08:38 - Animate Spin Rotation for Health Pickups
10:05 - Only Pickup Health Pickups when Player is Damaged
11:29 - Wrapup
With 3 animations, make a chainable sword attack where you go from sword animation 1 to 2 to 3 by pressing the attack key 3 separate times at the right time.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:37 - Setting Up Attack 2 & Attack 3 Animations
02:17 - Sword Attacks Collider Setup
06:39 - Player Chain Attack Transitions
10:02 - Knight Walk Acceleration Towards Max Speed
14:00 - FIX: Hit to Idle Transition for Knight
15:50 - Wrapup
Add a bow attack to a player character with a charge animation and releases a projectile that can deal damage and knockback to enemies in Unity 2022.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:39 - Bow Attack Animation
01:29 - Bow Attack Animator Transitions
02:44 - Ranged Attack Input Action
05:08 - Turn Off Movement While Firing Bow
06:09 - Projectile Launcher Setup
08:31 - Making Arrow Projectile Prefab
12:42 - Firing the Arrow as an Animation Event
15:22 - Arrow Rigidbody and Collider
16:24 - Destroy Projectile on Hit
17:49 - Controlling Fire Direction
20:36 - FIX: Knight Aerial Flipping Directions and Stuck on Wall
21:39 - Faster Arrows!
Learn how to make an flying enemy that moves between waypoints and ignores gravity for a Unity 2D Platformer game.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:30 - Creating FlyingEye Prefab
02:27 - Rigidbody & Animator Components
03:31 - Creating Animation Clips
07:54 - Creating Bite Attack
10:51 - FlyingEye Script
12:53 - Animator Transitions Setup
16:52 - Flying Waypoints Movement
28:41 - FIX: Increase Bite Detection Zone Size
29:48 - FIX: OnStateMachineEnter Skipped by Transition
31:20 - Flip Direction when Flying Left or Right
35:20 - Death State Setup
36:41 - FIX: Enemies Can Take Health Pickup
37:52 - Fade Out Behaviour Delay
39:37 - Make Enemy Fall Straight Down on Death
40:15 - Falling Ground Hit Collider
42:20 - Make Falling on CharacterDeath UnityEvent
45:26 - Wrapup
Adding Aerial Attack animations that can be chained together to hit enemies while in the air.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:31 - Air Attack Animations Setup
01:25 - Air Attack Collider Objects
05:21 - Air Attacks Animator StateMachine
08:58 - FIX: Transition Duration Adjustment
09:38 - Aerial Combat Test
10:38 - FIX: Flyer Should Move After Hit During Attack
12:12 - Wrapup
How to export your unity game to a standalone build and setting an exit game Esc key action that exits the game in Editor, Standalone, or WebGL build (sort of)
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:36 - UI Input Escape Key Action Setup
01:43 - OnExitGame Method
04:22 - WebGL QuitScene
05:45 - Set OnExitGame to Escape Action Event
How to play sounds effects with character animations and loop music in Unity 2022.
Reference Project Patreon Download ➣ https://www.patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ https://www.youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:11 - Adding Music with Intro and Loop
04:19 - Sound Effect PlayOneShot Behaviour
08:23 - Player Character Sound Effects Setup
12:08 - Knight Sound Effects Setup
12:50 - Flying Eye Sound Effects Setup
14:17 - Play Sound on Health Pickup