Piecing Together The AOE Attack
Greetings!
This week I'd like to talk about how I managed to stitch together the player's AOE attack. I knew that I wanted something that was castable and would show in the world where it would hit. With these two things in mind, I immediately thought of how I had already created something that required a button to be held down (the heavy attack) and also something that created a "preview" in the world (the building system). I quickly got to work to see how I could combine the two systems.
The spell uses the exact same method as the buildings to detect if something is within its collider. By keeping a list that is updated whenever something enters or leaves. Once the spell has been active for the required casting duration, It was as simple as just doing damage to everything inside and then getting destroyed. I even had some fun putting in some Niagara particle effects!
Thanks for tuning in again this week and hope to see you again next time,
Corbin Mein
Comments
Post a Comment