|
| 26 Dec 2013 11:44 AM |
So I have this Camera effect where it spins around the baseplate for a few seconds and then goes to your character. However, when I set the CameraType to Scriptable while it is spinning around the baseplate, the Camera's Focus (where the Camera is looking at) seems to move to a random spot in the sky (it could be that the camera itself, or the CoordinateFrame, moved).
Please help! I'm trying to get a ROBLOX Battle effect where the camera spins around the map for a few seconds then moves to your character. Please help!
cam:Interpolate(CFrame.new(character.Torso.Position),CFrame.new(character.Torso.Position),5)
This is what I have for the Interpolate method. Is this the right way to do this, or am I doing something wrong? I want the camera to move from the map to the character for regular gameplay in 5 seconds. Please help! Thanks! |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 27 Dec 2013 10:58 AM |
Add in cam.CameraType = "Custom" cam.CameraSubject = character.Humanoid after that piece of code. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 10:59 AM |
@wa
CameraType must be Scriptable for Interpolate to work.
@OP
The second argument should be where you are looking at. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 11:01 PM |
| Oh ok, and what should the first argument be :P? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 28 Dec 2013 07:42 AM |
| @evo notice the word AFTER |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
| |
|
|
| 28 Dec 2013 04:53 PM |
| What should the first argument be? I concluded from reading it that both arguments should be the part's position that I want to look at, hence the above code, but I dout that's it :P. |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 11:50 AM |
| Please help. Show me what I need to do for the Interpolate method for this to work :P. |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 01:22 PM |
| Bump come on guys dont make me post this a third time O.O. |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 08:59 PM |
| Guess not that many users know enough about the camera to help me :P. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 08:56 AM |
| Last bump before I post this a third time lol. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 09:07 AM |
| The first argument is the Camera's position, or the CoordinateFrame. |
|
|
| Report Abuse |
|
|
seanb117
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 1020 |
|
|
| 01 Jan 2014 09:11 AM |
| Super, learn to use the wiki. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 09:19 AM |
Sorry lol. Now it works, but it seems to teleport directly to that spot and focus, when I added the duration number as 5 seconds, with a comma. Same code as before. Help!
|
|
|
| Report Abuse |
|
|
seanb117
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 1020 |
|
| |
|
|
| 01 Jan 2014 10:38 AM |
cam:Interpolate(CFrame.new(character.Torso.Position-Vector3.new(0,0,20)),CFrame.new(character.Torso.Position),5)
Just added the -Vector3.new(0,0,20) part to the CFrame to make the Camera move to behind the player where it is normally. Not quite sure how to do this either. Is this correct? |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2014 12:25 PM |
| Bump I posted the new code help plz! |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Jan 2014 03:17 PM |
| Can someone tell me whats wrong with this??? |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2014 03:24 PM |
| Guess last bump before I repost a third time :P. |
|
|
| Report Abuse |
|
|