generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How can I reduce Camera sensitivity

Previous Thread :: Next Thread 
ColdSmoke is not online. 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 is not online. 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
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
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 is not online. 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 is not online. 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 is not online. 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
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
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 is not online. 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
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image