As an example :
My character got a movementspeed of 23.
(x;y) are my coordonate. If I go straight ahead, (x+8;y), (x-8;y), (x;y+8), (x;y-8) are all the possibilities. 8 is the traveled distance in a straight line.
If I am running diagonally, my possibilities are (x±6;y±6). What is my distance here ? 12 ? So the timing will be lower than before ?
=> Straight line : 8*2500/23 = 869
=> Diagonally : 12*2500/23 = 1300 ? I guess this is too large. Maybe 1300/2 = 650 ? Or sqrt(12)*2500/23 = 376. Guess that is too short.
Clientside, what is the way to get the distance ? (Currently I am using a fixe distance of 4)