6
I am developing a hobby (browser game), where the user will guide his 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 in relation to the position X of the first.
Example, if the position X is = a 60 the character moves in the same position (X - 25) and position Y = Y.
Based on other research: Jsfiddle