Skip to main content
April 10, 2007
Question

Camera moves with mouse

  • April 10, 2007
  • 1 reply
  • 321 views
Hi guys,

Just a quick post with HOPEFULLY a quick and helpful answer. See the background effect on this game which moves the background when the mouse is moved, I would love to know how to make something similar to that. Can you either, Direct me to a tutorial that will teach me how to do this OR do you know the script to do this?

All help is appriciated!

Thankyou!
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 10, 2007
that looks like primitive. here's a more flexible technique:

http://www.oreillynet.com/pub/a/javascript/2004/08/17/flashhacks.html?page=2
April 10, 2007
I do know what V-cam is and I have it already but I need more help than that. Sorry if I missed something on the page but that really doesnt help me to create the effect I am after. Could you be of any more help?
kglad
Community Expert
Community Expert
April 10, 2007
well, if you really want to duplicate the effect of your link, just use a scrolling movieclip whose scrolling is a function of the mouse position.

the class below sets up the scrolling for a member of the class. usually a mask is used to display the scrolling movieclip and this class requires one. just use a mask movieclip the same dimensions as your stage: