Hey all, I have a problem I've been working on for some time now regarding player input and animations based on player input.
Currently I have most of my current animations working as intended, except for a few combat animations. Before I end up getting too deep into my program, I'd like to just ask -- for a multiplayer RPG game, how closely tied should player input and animations be together? Right now I have three separate systems: one for handling input, one for handling animations, and one for sending/receiving updates from the server for player position/actions/etc.
Right now I'm struggling with trying to get my combat animations to work exactly how I want. Essentially, when the player hits the 1 button, i just want the animation to play once, but it plays repeatedly. This is due to utilizing a boolean for whether or not my event reader see's that the player pressed the 1 button. But I want the animations to play all the way through, without interruption should the player repeatedly spam the 1 button. In addition, I'm wanting the damage values to be calculated only once per play through, not per update tick which is how it's currently doing so. I realize the way I'm doing things are not exactly the most optimal, but at the moment, especially since I'm deep into the learning process, I'm not terribly concerned with optimal compared to wanting to get things in a working-as-intended state.