Melee Combat - Breakdown
Magisteros » Devlog
Melee Combat
Melee Combat in this project is implemented using the IDamagable interface, the C_Combat.cs script, and animation events.
Characters (the player and NPCs) can perform melee attacks using Physics.SphereCast() to apply damage to all colliders that are found within the cast, using the IDamagable interface.
The method AttackCast() is triggered by an event invoked by an animation event on the attack animation. This is so that the timing of the cast is lined up with the swing of the animation.
Get Magisteros
Magisteros
An Action RPG created during Mastered Bootcamp.
Status | Released |
Author | Brad Dallimer |
Genre | Action, Role Playing |
Tags | Action RPG, Fantasy, Prototype, Singleplayer, Third Person, Unity |
More posts
- Dynamic Scene Loading - BreakdownJun 20, 2023
- Data and Event Handling - BreakdownJun 20, 2023
- NPC AI - BreakdownJun 20, 2023
Leave a comment
Log in with itch.io to leave a comment.