Yeah. You will need to save the coordinates of the object (or mouse) on one act and then get the coordinates again on the next act. Using the differences in the two getX and getY values, you can determine the distance between the two points. Comparing two consecutive distances would give an average speed between the two moves.