this has probably been asked before but i couldnt find it easily

well im in the making of idea testing. One of them is going to be a walk cycle for a game im pulling together for fun, probably nothing past wip.

at any rate, the walk cycle is for a robot.

as you pilot the robot, the speed slowly increases and decreases.

since there is no set walk speed, and it varies, i need the animation to vary as well.

i got the calculations down already for max speed.

the robot in one stride of its legs (front to back of one leg). Is 8.5m/stride.

the max speed is 129.6km/hr. That would be in one hour a total of ~15,247 steps.

in one second that is 4.24 steps to reach that speed, or strides.

my question is, as the speed varies, i need the stride speed to vary as well. so if its only doing 10km/h, it would only be ~.37 strides per second.

i got the walk animation animated (very simple for the test).

how can i make the legs walk cycle, match the speed of the robot. im trying not to use python but instead logic bricks, but its looking that i might need to use python.

my current idea, is a keypress, moves a empty, that empty has a max/min. it reports the value to a property, so the property has the value, ie speed that the robot needs. Now how do i get that value to adjust the animation speed?

thanks for any help.