GitHub Repo - 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
assetstore.unity.com/packages...
2D Magic & Attack Effects
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 - github.com/SMHTKI
Instagram - / smhilldev
Talky Beat by Twin Musicom is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
Source: www.twinmusicom.org/song/265/t...
Artist: www.twinmusicom.org
29 июл 2024