Day 32: Weapon Combos
- neelvinay17
- Aug 7, 2023
- 1 min read
Updated: Aug 8, 2023
My plan for the day: I wanted to create a string of attacks that would chain together to create a smooth combination for the player to utilize, much like how many sword games do. What I accomplished:
This would mainly involve scripting, but before I started with the coding I created a new bool variable in the animator called canCombo. This would ensure only when the bool was true a combo was possible. To do so, I first went to the attack script and added in a few lines of code that used an if statement to check whether a light or heavy attack was performed, since the following combo would depend on how the combo started. If it was a light attack, it would redirect to a public void for playing light attack animation two, which was different to the first one, and if it started with a heavy attack, would use another method to use another heavy attack animation. Once these were done, I added in some more sword animations for both light and heavy attacks, and it started working very smoothly.
_______________________________________________________________________________________________________

Image Source: https://www.artstation.com/artwork/aoO4A0




Comments