1
Window / Re: "Empty" Window is slow
« on: August 30, 2018, 03:50:13 pm »
Try calling window.setFramerateLimit(60) or window.setVerticalSyncEnabled(true).
But not both!!
But not both!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
So you mean it gets stuck in the wall because your collision detection doesn't allow it to move out of the wall again?This is how I do it too. Pseudocode:
I tend to check whether the next move would cause a collision and if it does, I'd resolve it by moving it as close to the wall as allowed. That way you never move the character beyond the allowed boundary and thus it can't get stuck.
Hapax what about mouse or joystick events?For mouse you can use Mouse::Button (Documentation).