Original Post
hello,
hello i use formula from physics book ..u know x = x + v*elapsedtime...etc...game is fast and it is locked on the refresh rate of monitor, but problem is that if i run game on 60hz and then on 100hz and then i jump with 2d hero i get difference about 4 pixel for a given accelerating(-1340) and velocity at start is 1200, i got even more problems bcos i used INT all around, now u use DOUBLE and round that to integer just before i need a whole int...
like this..
//all are double
y = y + elapsedtime*v + 0.5*(-1340)*elapsedtime*elapsedtime;
v = v + elapsedtime-(-1340);
then one int
yfromjump = yfromjump + int(y);
then i draw using yfromjump for y
can u help ?
sorry for bad ass english
