# Need movie/image to go opposite direction to mouse

**URL:** <https://forum.kirupa.com/t/need-movie-image-to-go-opposite-direction-to-mouse/241367>\
**Category:** Uncategorized\
**Created:** [October 12, 2007, 5:48pm UTC](https://forum.kirupa.com/t/need-movie-image-to-go-opposite-direction-to-mouse/241367 "2007-10-12T17:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [October 12, 2007, 5:48pm UTC](https://forum.kirupa.com/t/need-movie-image-to-go-opposite-direction-to-mouse/241367/1 "2007-10-12T17:48:41Z")

</div>

I need to have a movie/image to go in the opposite direction to the mouse.

For example, I want the image to go down if the the mouse goes up.  
Similarly for all other directions.

I want to have a subtle deceleration of the image.  
I also want to have a border for the image.  
The mouse should only move when the image is in the boundary.  
I want to have a mask, so that only the part of the image in the boundary can be seen.

I’ve seen this effect done in a few places… but am not sure where to start.

Can someone give me some code to start me off…?

Thanks.

OM
