By using the X or Y value how would I get an object to move a certain distance in a certain time?
Develop games in your browser. Powerful, performant & highly capable.
Look at the LiteTween plugin.