|
| 19 Jul 2011 05:16 PM |
| Can anybody post examples on manipulating the camera? I just want to know what they do and how to use them, thanks. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 05:22 PM |
| Script examples or place examples? And if you look in Freemodels (don't save the thing in your place incase of virus) and check out a 2D script, it messes with Camera. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 05:24 PM |
| Any would do but I'd prefer script examples, I'll check free models, I completely forgot about them. |
|
|
| Report Abuse |
|
|
McBlocker
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 1721 |
|
|
| 19 Jul 2011 05:27 PM |
Accessing the camera: ~Through a local script game.Workspace.CurrentCamera ~Through a regular script local m = workspace:getChildren() for i,v in pairs(m) do if v.className=="Instance" then if v.CameraSubject==game.Players.McBlocker.Character.Humanoid then print("This is your camera") end end end
Changing the camera's view: ~Look under you instance in workspace to see what kinds of cameratypes there are. camera.CameraType=Enum.CameraType.Follow ~Yes, it does have to be "Enum.CameraType.BLAHBLAHBLAH"
Changing what the camera is watching: camera.CameraSubject = workspace.Part1 ~Can be on a part, a humanoid, or a model (I THINK) |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 05:28 PM |
| I know those ones but what I mean is turning it by degrees and zooming in/out. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 05:33 PM |
Ugh, I have to check something...
CurrentCamera.CoordinateFrame = CFrame.new(Vector3.new(x,y,z))
That's the position of the Camera, and it always focuses on the camerasubject. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jul 2011 05:35 PM |
| By changing the position you can manipulate the angle. |
|
|
| Report Abuse |
|
|