REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 11 May 2014 09:16 PM |
| how do I make like a camera sorta moving up and down so it adds a realistic effect? |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 09:18 PM |
| u need to make scrip-tabel and wen there walk u move camera cordinte fram |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 09:30 PM |
| Camera Manipulation is VERY HARD for a scripter of your skill. If someone were to give you a script for it, you wouldn't even understand it. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 11 May 2014 09:46 PM |
| lol how would u know? ;) I can understand scripts very well but I cant write it as good as I can understand it |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 09:48 PM |
| @rem25 ik what you mean, like a realistic walking/running and the camera moves tiled from side to side right? |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:16 PM |
Well you'd have a script, right, and you'd have 3 functions or so. The first function would be the moving the camera up and down as long as the W key is held down. (Suggesting that the camera bobs up and down when you walk). The second function would be set off when a player hits a key. This function would detect if that key is W and then set WIsHeldDown to true. The third function would set off if a player lets go of a key. This function would detect if the key being let go of is W. It would then set WIsHeldDown to false. Your script would be something like this (it needs to be in a local script) (and I'd normally have spacing like tabs as well):
function Move(key) if key == "w" then while WIsHeldDown == true do CAMERAMANIPULATIONSCRIPTHERE end end end
function KeyDownCheck(key) if key == "w" then WIsHeldDown = true end end
function KeyUpCheck(key) if key == "w" then WIsHeldDown = false end end
mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:connect(Move) mouse.KeyDown:connect(KeyDownCheck) mouse.KeyDown:connect(KeyUpCheck) |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 11 May 2014 10:18 PM |
| ok thanks imma play around with this and inform u if I have any problems :) |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 11 May 2014 10:19 PM |
| @centric yes but I also want the camera to sway a bit when they're not moving just to add realisticness |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:22 PM |
| @c0m so where would you put this local script into? |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:33 PM |
@Centric
I would put it in the StarterGui. That's just where I put my local scripts. You also can put it in the StarterPack. |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:34 PM |
@REM
Awesome, have fun! I'll be interested to see how this turns out! |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 11 May 2014 10:34 PM |
| or the players camera^ that's local too but Startergui is the best choice |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:35 PM |
| Yeah. I forgot about that, you could do that too. |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:36 PM |
Scripts dont run in camera.. any scripts..
Uust like scripts dont run in lighting, or the player itself |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:44 PM |
| I haven't done it in a while, I think you used to be able to. I think so, I've never experimented with it much. |
|
|
| Report Abuse |
|
|