how do you make it so where the mouse goes, the camera turns that way? Could someone give code that would do that?
thanks!
thanks!
TurnEntity camsphere2, 0, -MouseXSpeed()/5.0, 0 ;rotate player Pivot according to mouse X movement TurnEntity camera2, MouseYSpeed()/5.0, 0, 0 ;rotate camera up/down according to mouse Y movement If EntityPitch(camera2) < -45 ;don't allow camera to look below -45 degrees RotateEntity camera2, -45, EntityYaw(camera2), EntityRoll(camera2) EndIf If EntityPitch(camera2) > 45 ;don't allow camera to look above 45 degrees RotateEntity camera2, 45, EntityYaw(camera2), EntityRoll(camera2) EndIf MoveMouse GraphicsWidth()/1.3, GraphicsHeight()/2.1 ;reset mouse position to middle of screen