Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 04:58 PM |
| How do I lock a camera so when you hold right click to rotate/turn it you can't? |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 22 Mar 2015 05:02 PM |
Make the cameratype fixed.
Just getting started! Send some trades :) - http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14600251 |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 05:50 PM |
| It was already fixed. Still doesn't solve my problem. |
|
|
| Report Abuse |
|
|
| |
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
| |
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 06:08 PM |
| Can you be more descriptive? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2015 06:10 PM |
This should help: http://wiki.roblox.com/index.php?title=Camera_manipulation |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 06:13 PM |
| But I don't want it to stay in a co-ordinate. I want it not be able to be rotated, I want it to follow the player when the player is going left or right. |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 06:14 PM |
| And unturnable by holding right click.... if that's a word. |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
| |
|
|
| 22 Mar 2015 06:40 PM |
| I recommend you use a Scriptable camera. It's funny how often people have been wanting unrotatable cameras the past few days. |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 06:42 PM |
| I'm using it for something special. *grin* Anyway, I'm not very experienced to do with cameras. Can you help me with a code to make it unrotateable? -Thanks |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2015 06:45 PM |
It mostly takes knowledge of CFrames. Just use CFrames to position the camera behind the Character every 0.01666666666666667 seconds. |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 22 Mar 2015 06:46 PM |
| Ugh had to be CFrames... Can you give me an example if you may? I'm grateful to you c; |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2015 06:51 PM |
Ten studs behind the character, and 1 stud up and 2 to the side:
Camera.CoordinateFrame = Character.Head.CFrame * CFrame.new(2, 1, 10) |
|
|
| Report Abuse |
|
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
| |
|
Zoltra
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 105 |
|
|
| 23 Mar 2015 12:17 PM |
Ok I tried this: while true do wait(0.01) script.Parent.CoordinateFrame = workspace.Player.Head.CFrame * CFrame.new(2, 1, 10) end
But now when I press w to walk forward it goes diagonal. Not straight. |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2015 01:04 PM |
From what your saying , I think you are looking for a camera that does this: http://www.roblox.com/ZigZag-place?id=139491351
Here is the code:
Workspace.CurrentCamera.CameraType = "Scriptable" --Locks the camera game:GetService("RunService").RenderStepped:connect(function() --Fires every frame making it perfectly smooth Workspace.CurrentCamera.CoordinateFrame = Character.Head.CFrame + Vector3.new(20,1,20) --Set camera position + offset end)
|
|
|
| Report Abuse |
|
|
|
| 23 Mar 2015 01:22 PM |
... Just set the CameraType to Attach
Total Posts: 404 ---------- Not Found |
|
|
| Report Abuse |
|
|