
05-11-2011, 05:25 PM
There is no real "easy" way to do this since the "let the mouse move the camera" event only moves the camera laterally (the way you described.) Having it move vertically is going to take a little bit of effort. If you go to the world's functions, there should be something like "mouse distance from left" and "mouse distance from top" (I forgot the actual name of the function.) Anyways, you want to know the function "mouse distance from top" so you can figure out how many pixels the mouse cursor is away from the top edge of the viewing window. Then based on whatever number the function returns, you can move the camera up and down manually using camera's move function. I hope this helps!
Projects
-Escape the Kitchen
-That ninja animation
-Hill Collision
Upcoming Projects
-Some penguin adventure game?
|