After programming on my game for one day, I finally need some help.
What I’m trying to do is: to make my character walk everytime each 200 - 300 ms. I tried this with a thread by letting it sleep for that amount of miliseconds. This actually did work, but not really smooth. Sometimes it didn’t really respond to my key input, only after holding it for a certain amount of miliseconds. What is the best way to solve this?
Location: https://github.com/Desmaster/Devio/blob/master/src/com/github/desmaster/Devio/entity/Player.java
Thanks for helping / reading!