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: Camera Help - not a request - please at least read.

Previous Thread :: Next Thread 
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
31 May 2015 10:36 PM
I need to follow a block (moving camera) and also lock the camera at a certain angle. How would I go about doing this? 'Follow' camera type allows me to track the block, but I can't figure out how to lock the camera angle... Theories, thoughts, solutions, etc?
Report Abuse
mattmob is not online. mattmob
Joined: 18 Dec 2012
Total Posts: 21
31 May 2015 10:40 PM
here this dude does grate tutorials
https://www.youtube.com/watch?v=uEWNEgf78KA
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
31 May 2015 10:43 PM
That video doesn't really have everything that you need in it (i've watched it before) and you would probably be interested at looking at the properties of a camera and changing them from there.

http://wiki.roblox.com/index.php?title=API:Class/Camera

r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣
Report Abuse
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
31 May 2015 10:50 PM
Thanks for the replies, I've looked at the wiki, but there's so many things to try, and I can't fathom trying them all. Does anyone know of a way to have a camera fixed at a specific angle (i.e. the player cannot shift the angle) and still following a block?
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
31 May 2015 10:52 PM
So, for starters, if you change the CameraType to Scriptable, then the player can't move their camera (i think, i haven't experimented with cameras in forever). Also, you would want to do CurrentCamera.CoordinateFrame, and change the cframe value accordingly.

But, with tilting the camera and making it roll, I could only assume one would use :GetRoll().


r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
31 May 2015 10:56 PM
CFrame = Pos * Angle * Offset

So you just gotta keep the angle and offset the same and use RenderStepped to change the position to the block
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