I’m making a grid-based game and I want to make a stamina bar for it. I was able to get it working but the issue is when you push 2 keys at once, like W and A, it takes away 2 instead of just 1 for the 1 grid space he moved.
I’m making a grid-based game and I want to make a stamina bar for it. I was able to get it working but the issue is when you push 2 keys at once, like W and A, it takes away 2 instead of just 1 for the 1 grid space he moved.