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 » Scripting Helpers
Home Search
 

Re: Camera problems.

Previous Thread :: Next Thread 
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:11 PM
Sometimes i hate camera manipulation.

local continue = true

local Cam = coroutine.create(function(Frame, Type, Focus, Sub)
local C = Workspace.CurrentCamera
continue = true
while continue do
C.CameraSubject = Sub
C.CoordinateFrame = CFrame.new(Frame)
C.CameraType = Type
C.Focus = Focus
wait()
end
end)

coroutine.resume(Cam, Workspace.Cameras.Camera1.Position, "Follow", Workspace.Cameras.Camera1Look,game.Workspace.Cameras.Camera1)

It works. The screen is white though.
Report Abuse
Diinosaurii is not online. Diinosaurii
Joined: 31 Mar 2012
Total Posts: 215
04 Apr 2012 04:17 PM
Explain 'screen is white.'
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:17 PM
Help.......
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:18 PM
How much simpler can i make it, "The screen is white". Very simple, it's all white.
Report Abuse
Diinosaurii is not online. Diinosaurii
Joined: 31 Mar 2012
Total Posts: 215
04 Apr 2012 04:19 PM
How do you know it works if the screen is white?
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:21 PM
Because that means it moved the players camera. It's with the positioning. I know that. I had that problem 2 months ago. I forgot how i fixed it.
Report Abuse
Diinosaurii is not online. Diinosaurii
Joined: 31 Mar 2012
Total Posts: 215
04 Apr 2012 04:22 PM
Screen cap it and post it to Imgur or something similar.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
04 Apr 2012 04:24 PM
That means that your camera has moved into an area that is nil. I.E. ROBLOX has stopped rendering and doing calculations at that point, due to Double-precision floating being off.... if you're trying to move the players camera so the focus and coordinate frame are the same, you will also get a white screen.

Don't panic... Just fix the positions.


Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:25 PM
@Quenty- If i remove 1 of them, it doesn't work. Can you fix it for me?
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
04 Apr 2012 04:35 PM
I fixed the white screen. What 'CameraType' do i change the camera to, to make it unmovable?
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
04 Apr 2012 04:40 PM
Modifies how the camera works...

You may want to use

Spawn(function()

end)

instead of coroutines - just my opinion.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
04 Apr 2012 04:41 PM
If I remember once crazyman32 told me the focus has to be less than something.
Im not sure, Something along those lines.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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