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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Camera tween?

Previous Thread :: Next Thread 
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
04 May 2012 03:59 PM
Will functions like that be added?
I really don't want to use a user made version, because for something like this a legit camera method would work best.
Report Abuse
Prehistoricmanthe2nd is not online. Prehistoricmanthe2nd
Joined: 15 Jan 2009
Total Posts: 193
04 May 2012 05:27 PM
Well, you can use a few of Roblox's new docks like first person, but otherwise you have to make the tween yourself. Search in games "rc air battle" and go on the first one. Some nice camera tweens there by crazyman.
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
05 May 2012 02:17 AM
Why not make your own? It's not that hard at all and there's that new CameraType Scriptable that will make it impossible for the player to move the camera with the normal camera controls.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
05 May 2012 03:48 AM
Roblox should add a cframe tweening/interpolation function...
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
05 May 2012 08:15 AM
[ Content Deleted ]
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
05 May 2012 08:18 AM
They need an autosave feature. I don't think you can make that. :/

(Not within the ROBLOX engine that is).
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
05 May 2012 08:45 AM
I have a feeling that the math involved would be better on the C side rather than the lua side.
Report Abuse
Flurite is not online. Flurite
Joined: 03 Apr 2011
Total Posts: 5386
05 May 2012 08:50 AM
@SunTzu,

Do you mean saving your features in game? Of course you can do that.. ever since the formation of data persistence.
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
05 May 2012 09:00 AM
When it comes to saving, i wish we had a form of saving and retrieving information that is communicated between servers and the place's memory itself, so that if i want i can make a highscores leader board for all people who have played the game. or like an in game voting system where i can go back into build mode and read the values that this voting GUI has changed.

Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
05 May 2012 09:01 AM
of course problems with my idea would be stuff like memory leaks and easy to exploit the place itself rather than just the server, but these im sure ROBLOX could get around.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 May 2012 09:04 AM
I will publish my lovely, pretty little tweening script for all of you. It has a time argument, and will tween from the current camera position to the new one you specify.

function TweenCam(c1,f1,Time) -- This one is better, it has a time argument.
--local time=tick()
local c0,f0 = Workspace.CurrentCamera.CoordinateFrame, Workspace.CurrentCamera.Focus
if Workspace.CurrentCamera.CameraSubject then
Workspace.CurrentCamera:Destroy()
repeat wait() until Workspace.CurrentCamera
Workspace.CurrentCamera.CameraType = "Scriptable"
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(c0.p, f0.p)
else
Workspace.CurrentCamera.CameraType = "Scriptable"
end
--local RepTime = (1/(Time/game:GetService("RunService").Heartbeat:wait()))
local RepTime = (1/(Time/wait()))
local Reps = 0
for i=0,1,RepTime do
--local r = ((math.sin(math.rad(i))+1)/2)
i=math.sin(math.rad(90)*i)
local cam = c0.p:lerp(c1.p,i)
local foc = f0.p:lerp(f1.p,i)
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(cam, foc)
--Workspace.CurrentCamera.CoordinateFrame = CFrame.new(c0.p:lerp(c1.p,r))
--Workspace.CurrentCamera.Focus = CFrame.new(f0.p:lerp(f1.p,r))
wait()
end
--print(tick()-time)
end

Enjoy the ugly code.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
05 May 2012 09:13 AM
I think ROBLOX should make an autosave feature in studio so if it crashes or our computers suddenly shut down, there is an auto backup.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
Valone is not online. Valone
Joined: 08 Feb 2012
Total Posts: 4371
05 May 2012 09:52 AM
@Candy
Ctrl+S every minute?

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞
-Valone; Game maker; Graphical Artist and Programmer. (Female)
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
05 May 2012 09:57 AM
@Valone

"autosave"
"auto"
Report Abuse
Flurite is not online. Flurite
Joined: 03 Apr 2011
Total Posts: 5386
05 May 2012 10:00 AM
@Quenty,

Don't you have this error reporting system at your game? How does that work? Aka, how do you retrieve the errors.
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
05 May 2012 10:01 AM
I meant it saves what you're working on, I am not talking about in a game.

:/

Report Abuse
Valone is not online. Valone
Joined: 08 Feb 2012
Total Posts: 4371
05 May 2012 10:03 AM
@Flurite.
Xpcall?

And I was just stating, it's rather pointless, as you need only press two keys.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞
-Valone; Game maker; Graphical Artist and Programmer. (Female)
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
05 May 2012 10:58 AM
@Candy
I suggested that to builderman myself years ago. He replied (this was when he actually replied to his messages) saying it was a good idea.

5 years later...
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
05 May 2012 11:00 AM
@NVI;
Uggh. Sometimes you'll forget to CTRL+S when your computer actually crashes or shuts down.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
05 May 2012 11:01 AM
Usually when something like that happens to me, I quit playing Roblox for several weeks.
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
05 May 2012 11:56 AM
you could do something like that in VBS.

Shell = createobject("WScript.Shell")
do
Shell.SendKeys "^S"
wscript.sleep 100
loop
Report Abuse
Prehistoricmanthe2nd is not online. Prehistoricmanthe2nd
Joined: 15 Jan 2009
Total Posts: 193
05 May 2012 12:32 PM
Somebody mentioned autosave...using command bar:

while wait(30) do game:Save() end

Or game.Workspace:Save(), I can't remember.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 May 2012 12:39 PM
@Flurite. What? I have several error stuffz.

Like, one that checks for syntax errors, and an online one...

And I also print online output.
Report Abuse
Valone is not online. Valone
Joined: 08 Feb 2012
Total Posts: 4371
05 May 2012 12:39 PM
I'd stick with running a background process, but if the above method works, use that!

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞
-Valone; Game maker; Graphical Artist and Programmer. (Female)
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 May 2012 01:23 PM
The problem with autosave: Making mistakes.
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