GetKey Queuing

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.

So how can I prevent that?

I don’t know… how are you writing your code?

It shouldn’t be queuing like that. GetKey just returns true if that key is currently pressed. There’s no queuing to it.

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?