quick one this as my brain has stopped working due to the heat.
Assume I'm using delta time so that my sprite movement must be multiplied by delta each logic frame e.g. y=y+yspeed*Delta
OK, Let's say that yspeed is affected by gravity. Should I do yspeed=yspeed+GRAVITY*Delta each logic frame or should I miss off the *Delta bit. I'm pretty sure I have to use *Delta on the yspeed increase. (It looks OK on-screen)
Also take it a level further, let's say gravity was called ACCELERATION and it was a vehicle of some kind, and I wanted to increase the acceleration each frame, should I also change the rate of acceleration by delta each frame too? Probably...
Assume I'm using delta time so that my sprite movement must be multiplied by delta each logic frame e.g. y=y+yspeed*Delta
OK, Let's say that yspeed is affected by gravity. Should I do yspeed=yspeed+GRAVITY*Delta each logic frame or should I miss off the *Delta bit. I'm pretty sure I have to use *Delta on the yspeed increase. (It looks OK on-screen)
Also take it a level further, let's say gravity was called ACCELERATION and it was a vehicle of some kind, and I wanted to increase the acceleration each frame, should I also change the rate of acceleration by delta each frame too? Probably...