First off, I just want to apologize for not replying in a timely manner. I got a new case yesterday and well, I was quite busy.
What happens if you limit the frame rate?
The framerate has no effect on player movement/animation due to it being calculated by speed*elapsed time.
// code here
- Learn to use the event loop correctly, at the moment you may not even be handing a real event
- Why does everyone like to convert a perfectly valid sf::Time to a float? Anyways in this case it shouldn't make a difference, but you should keep it as a sf::Time until you need to convert it to seconds.
Make these changes and let us know what happens.
I've actually changed my code quite a bit and for now it seems I'm using my event loop correctly. I still have much to learn, my code is quite a mess I do apologize. I've managed to get it working:
Although, of course now the problem is syncing the hands/feet to the bobbing head motion. I think I'll take a short term break from this project to get a fresh perspective on where I should go from here with it. Thank you for your suggestion, it is much appreciated