ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
|
| 22 Jul 2014 12:46 AM |
Basically, if the camera has a small FOV it kind of jumps around and moves far too quick, how can I throttle it or slow down the movement?
inb4showuscode --Broken half made zoom function made before I found myself stumped function Zoom() if LastRotation == nil then LastRotation = Cam.CFrame.lookVector end ZoomLevel = ZoomLevel + 1 Player.CameraMode = Enum.CameraMode.LockFirstPerson Cam.FieldOfView = 30 Cam.Changed:connect(function() if Cam.CFrame.lookVector ~= LastRotation then local Diff = Cam.CFrame.lookVector - LastRotation local New = Diff/10 end end) end |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 22 Jul 2014 12:52 AM |
Untested
http://www.roblox.com/Camera-Sensitivity-Mouse-Sensitivity-item?id=141400747 |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 12:53 AM |
| The only way I can think of is setting the camera mode to scriptable and connecting to the RunService.RenderStepped event in a localscript and manually handling the camera's rotation. |
|
|
| Report Abuse |
|
|
ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
|
| 22 Jul 2014 12:56 AM |
Just opened it up and seems like it would work. Strange though, it's using a global variable in a local script? is that a local global variable?
oh well, I'll just modify it. Thanks. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 22 Jul 2014 12:58 AM |
| In a local script _G. variables are player specific |
|
|
| Report Abuse |
|
|
ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
|
| 22 Jul 2014 01:08 AM |
Oh really?
if only I knew about that sooner, thanks. Also this script works but it's kinda jumpy, not sure I could do better. Thanks anyways.
I might try and just change this to working on renderstep instead of mouse.move event and see if it's any better |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 01:18 AM |
| Yes, it is. The RenderStep calls your function every 60th of a second. Events will wait until the script service next runs at about a 30th of a second. I would edit the script in the free models to use the RenderStep event. |
|
|
| Report Abuse |
|
|
ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
|
| 22 Jul 2014 01:51 AM |
I did edit it, it makes it even more glitchy looking
Now I'm trying to see if I can just pull off an effect without the use of first person. Is there any way to lock or move the mouse to the center of the screen without first person? |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 01:53 AM |
| If you find a way, please let me know because I have that problem in my place. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 22 Jul 2014 03:33 AM |
I don't think it's possible yet since moving the real mouse is a locked function. But you can make a fake mouse and hide the real mouse. |
|
|
| Report Abuse |
|
|