Hello in my game I have a character that is supposed to move and I got it so when the key is held down, it moves smoothly but when you hold the key, it moves 1 time, delays then moves slowly. This happens because when you hold a key on the keyboard it has a delay before it spams. You can try it, hold 1 key down, it will press once, have a delay, then start spamming. My question is how I would get around this? any ideas? thanks!
Asked
Active
Viewed 54 times
0
-
Please read [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). Please show us your code and explain exactly where the problem is. – Rabbid76 Oct 05 '22 at 16:42
-
fixed by doing if event.key == K_(the key) – Dec 08 '22 at 13:21