1
General / Re: Smooth character movement with Arrow keys
« on: April 29, 2024, 12:40:26 pm »
Hello,
I was having this same problem, but reformatting my code the way kojack said fixed it. I read through quite a few other posts before I found this one.
Here is one of the others that I read:
https://en.sfml-dev.org/forums/index.php?topic=13145.msg92028#msg92028
In that post, eXpl0it3r said:
"Don't mix real-time inputs and event handling.
Read the linked tutorials (again), especially pay attention to when you should use what and where you should use what. "
I read the tutorials, but still don't understand why this fixed the issue. I am pretty new to C++ and SFML so I apologise if this is not a good question.
I was having this same problem, but reformatting my code the way kojack said fixed it. I read through quite a few other posts before I found this one.
Here is one of the others that I read:
https://en.sfml-dev.org/forums/index.php?topic=13145.msg92028#msg92028
In that post, eXpl0it3r said:
"Don't mix real-time inputs and event handling.
Read the linked tutorials (again), especially pay attention to when you should use what and where you should use what. "
I read the tutorials, but still don't understand why this fixed the issue. I am pretty new to C++ and SFML so I apologise if this is not a good question.