Hello everyone,
I got a problem with slick2D. The movements are faster at higher FPS rates, although I multiply with the delta given in Update();
Example:
@Override
public void update(GameContainer gc, int delta) throws SlickException {
myUpdate(delta);
}
public void myUpdate(int delta) {
tmpY = body.getBounds().getY();
tmpY += gravity.y * body.acceleration * delta;
body.getBounds().setY(tmpY);
}
Aft 300 FPS the movement is much faster than 60 FPS. This is very frustrating since I am doing such stuff for weeks and now it won’t work. Where is the problem?
Am I using delta wrongly?