Click and Drag Camera
BlitzMax Forums/MiniB3D Module/Click and Drag Camera| 
 | ||
| I want to press my right mouse button and move the camera left and right which will move the camera in and out on Z axis and move the mouse Up and Down to move the camera left and right.  I cannot seem to get it to work could anyone make me an example of how to do it I am drawing a blank. | 
| 
 | ||
| psudo code if Mousedown( 2 )=1 MoveCamera Camera, 0.0, 0.0, MouseYSpeed() MoveCamera Camera, MouseXSpeed, 0.0, 0.0 'to stop sticking MoveMouse graphicswidth()/2, graphicsheight()/2 Endif Thats the sort of idea, you have to place the cursor in the center of the screen to stop the sticking you will get when it reaches an edge. | 
| 
 | ||
| yeah I understand that bit it's actually moving the camera relative to the mouse that I am talking about. | 
| 
 | ||
| oh I see you mean click and dragging on the camera. You could have a quad in front of the camera which is pickable and do a camerapick then place the camera at the pickedx/y/z | 
| 
 | ||
| oh thats a brilliant idea never thought of that. |