I'm developing a time spent (browser game), where the user will guide your plane through the scenery!
I have 2 div
, at first I create a rectangle where when moving the mouse I capture the axis X and Y , I need to move a character in the second div
with a certain delay over the X position of the first.
Example, if the X position is = 60 the character moves in the same position ( X - 25) > Y = Y .
Based on other searches: JsFiddle