1
General discussions / BOx2d with SFML
« on: June 15, 2024, 10:39:29 pm »
Hi everyone!
i am building the game 'Geometry Dash' using Box2d (in c++ and SFML of course), and my the movement of the player is very choppy.
I tried everything- erasing the Box2d part in the code, playing around with the framerate, using m_window.setVerticalSyncEnabled(true); , different ways to use the setp() func and different ways to handle time, but nothing seems to help!
In addition, i noticed that the Behavior of the player is different when i run the program on different computers, but its never smooth.
Does anyone have any idea what might be causing it? i'll take any advice at this point.
thanks!
David
i am building the game 'Geometry Dash' using Box2d (in c++ and SFML of course), and my the movement of the player is very choppy.
I tried everything- erasing the Box2d part in the code, playing around with the framerate, using m_window.setVerticalSyncEnabled(true); , different ways to use the setp() func and different ways to handle time, but nothing seems to help!
In addition, i noticed that the Behavior of the player is different when i run the program on different computers, but its never smooth.
Does anyone have any idea what might be causing it? i'll take any advice at this point.
thanks!
David