1
General / Re: Graphic is bugging because of sf::Clock
« on: October 19, 2013, 02:30:43 pm »Well that's hardly complete and minimal code (not to mention extremely redundant code), but my guess would be that your character moves enough pixels per frame that there simply is no frame during which he intersects the rectangle yet is still above it.Ok, thanks for the answer. But i have no idea how to realize this, can you give me any tips or something?
You need to design some collision logic that doesn't rely on frames taking specific lengths of time. The simplest approach I know of is looking at where the player is and "should" move to (given player input, gravity, momentum, delta time, etc), and see if there are any obstacles between the two points.