Hello All,
Just a quick question. I have a script for player movement and have several IF statements within Update(). Whenever I press movement keys after each other, the functions seem to queue up and wait for the previous to finish. I do not want that.
Example: I hold W to walk forward and press E while doing so (attack). Once I let go of W, I attack.
Ah, I found the issue. It was actually quite simple. It had to do with animation booleans not being set to false when the other action is being pressed.
I suppose I doubted the number of IF statements in the Update() function and felt it was bad scripting…perhaps it is?