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 » Scripters
Home Search
 

Re: How can I 4x zoom in without 4x mouse sensitivity?

Previous Thread :: Next Thread 
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
20 Jun 2016 03:20 PM
workspace.CurrentCamera.FieldOfView = 70/4

is what I'm currently using, but it also makes mouse sensitivity 4x. is there any way around this?


-Widths
Report Abuse
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
20 Jun 2016 03:38 PM
bump


-Widths
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
20 Jun 2016 03:49 PM
I think there are cleaner, more advanced ways to do it, but personally I lerp the camera's CFrame and the CFrame of the camera last renderstep to simulate decreased mouse sensitivity. By binding to render step you can avoid visual stuttering caused by the method.
Report Abuse
iJava is not online. iJava
Joined: 06 Mar 2011
Total Posts: 29914
20 Jun 2016 04:04 PM
How can I do that?


-Widths
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
20 Jun 2016 04:19 PM
Something like this

local Sensitivity=0.5
local LastLookVector=Camera.CFrame.lookVector
function AdjustSensitivty()
local NewLookVector=Camera.CFrame.lookVector:lerp(LastLookVector,Sensitivity)
Camera.CFrame=CFrame.new(Camera.CFrame.p,Camera.CFrame.p+NewLookVector)
LastLookVector=Camera.CFrame.lookVector
end
game:GetService("RunService"):BindToRenderStep("AdjustSensitivity",Enum.RenderPriority.Last.Value,AdjustSensitivty)
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
20 Jun 2016 04:23 PM
You could just move the camera closer to the object. Say 1x = 0 studs, 2x = 25 studs, 4x = 100 studs forward from the scope
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
20 Jun 2016 04:23 PM
That would work extremely poorly, you would be able to see through walls and stuff.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
20 Jun 2016 04:25 PM
you could cast a ray and move to where the ray hits or the distance if it doesnt hit anything
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
20 Jun 2016 04:25 PM
You use a custom camera saddly, I had a script that did it easily but saddly I dont anymore. Basicly you locked the mouse to the screen and used UIS to detect how the mouse moved
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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