Proximity based movement


I am currently creating an explorable comic. The problem being the explorable part.

Essentially I’m trying to scroll the “screen” in order to explore the comic, the comic being just one massive picture.

To do this I figure I need to move the picture in relation to where the mouse is to a centre point, So the further away the mouse gets from the centre point the faster the image moves in the opposite direction.

Unfortunately, despite some struggling, my small knowledge of as3 just doesn’t seem to enough to get this done.

Thanks in advance if you can help! :slight_smile: