Unity - 2D Melee Combo System Tutorial

Опубликовано: 21 October 2024
на канале: Sean Masai Hill
74,686
2.4k

GitHub Repo - https://github.com/SMHTKI/Unity-2D-Me...

2D combat systems need to be simple yet flexible in order to meet the needs of an ever growing project. Combo's in general can make for an easy source of project bloat. Today I show you a nice way to utilize FSM's to craft a system that's both easy to use but full of scalability.

Hero Knight - Pixel Art
https://assetstore.unity.com/packages...

2D Magic & Attack Effects
https://assetstore.unity.com/packages...

Chapters:
00:00 - Intro
01:00 - Project Prerequisites
02:00 - Starting our new Project
03:08 - A Brief Overview of States & State Machines
03:33 - Classes to Create for Later
03:51 - Creating our Melee Base State
07:18 - Setting our Child Combo Classes
08:36 - Setting up our Helper Classes
10:36 - Creating & Setting up Our Animation Controller
13:02 - Seeing the Animations Combo
13:31 - Adding Damage
14:18 - Utilizing Keyframe Recording with a Dynamic Collider
17:03 - Adding Damage Dealing
19:50 - Adding Input Buffering & Polish

Twitter -   / smhilldev  
GitHub - https://github.com/SMHTKI
Instagram -   / smhilldev  

Talky Beat by Twin Musicom is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Source: http://www.twinmusicom.org/song/265/t...
Artist: http://www.twinmusicom.org