I do not think any code demonstrations will be necessary because it’s not much SFML as it is C++. The question is, how would I achieve smooth movement with something that I’m blitting on the screen? For example, I blit a square to the screen, and I make it’s position variables as integers that I’ve defined before so that I can move it with my arrow keys. When I press the keys that add values to the variables it works fine if I use only one key, but upon pressing two keys, it only adds to the value that was pressed second. How would I make it so it moves diagonally?
Share
pseudo-code