I'm wondering how I could make an image move in the X axis based on the position of the X position of the mouse. Also, how do I control the rate of movement? For example, as the mouse is moved from (0,0) to (100,0) one image may move from (0,0) to (50,0), while another image moves from (0,20) to (120,20).
I need to write a code that is basically the same idea as parallax scrolling where the movement is based on the mouseX position.