|
| 10 Feb 2015 01:32 PM |
| I'm making a game, and there's a part in it I need to zoom in and I need the mouse to move smoothly, the problem is I don't know how to do this. Does anyone know how? I've seen it done at multiple places. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:34 PM |
| Call me a moron but I don't understand what you're asking. Clarify? |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:36 PM |
In this part of my game, I need to zoom in. So I change the field of view to 30. When I do this, when you move your mouse, it moves in steps. It does not move smoothly. I've seen it done before where its smooth but I have no idea how to do it. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:39 PM |
| Well I just went into studio and changed my FOV to 30 and didn't notice anything wrong with the mouse. Might be an issue on your end because I'm not experiencing any issues. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:41 PM |
repeat wait(1) until game.Workspace.CurrentCamera game.Workspace.CurrentCamera.FieldOfView=20
Put that in a local script in starterpack. Try to put your mouse on something far away. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:42 PM |
| Also you have to be zoomed in sorry |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:43 PM |
| Still not noticing anything different. Don't know what to tell ya man. |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:43 PM |
| Oh hold on let me try zooming in. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Feb 2015 01:44 PM |
| So I noticed that my camera is a bit choppy while moving, nothing with my cursor though. Did you mean the camera? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 10 Feb 2015 01:45 PM |
| You'll need to set camera type to scriptable and redo the camera to move slowly |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:56 PM |
"You'll need to set camera type to scriptable and redo the camera to move slowly"
I don't know what you mean by redo the camera. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 10 Feb 2015 01:57 PM |
| I mean script the camera to move yourself instead of the default way roblox does |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 01:59 PM |
| Oh so position the camera at the head and make it look toward that mouse? |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 02:28 PM |
Okay well this isnt working at all.
player.CameraMode=Enum.CameraMode.LockFirstPerson camera.CameraType='Scriptable' game["Run Service"].RenderStepped:connect(function() camera.CoordinateFrame=CFrame.new(head.CFrame.p,mouse.Hit.p) end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Feb 2015 02:32 PM |
player.CameraMode=Enum.CameraMode.LockFirstPerson camera.CameraType='Scriptable' game:GetService("RunService").RenderStepped:connect(function() camera.CoordinateFrame=CFrame.new(head.CFrame.p,mouse.Hit.p) end)
Try that. Also do you have "camera" defined somewhere? If this doesn't work I can't help you. (Unless you don't have camera defined) |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2015 02:36 PM |
| I have it working, Thats just part of my code. It just looks all.. its hard to explain, run it yourself if you want to know. |
|
|
| Report Abuse |
|
|