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: I just learned coroutines...

Previous Thread :: Next Thread 
Fluffmiceter is not online. Fluffmiceter
Joined: 28 Jan 2012
Total Posts: 6931
09 Oct 2013 05:45 PM
Hmm.. I'm worried that I will misspell c.o.r.o.u.t.i.n.e when rushing... Why didn't the roblox devs make a shorter way to write coroutines?
Currently, I am thinking of putting something like this in front of my code.. (Haven't tested it yet.)

function cor(code)
local new = coroutine.create(function()
print(code)
end)
end

Which is.. still pretty useless since I haven't had the time to write the rest.

Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Oct 2013 05:47 PM
Diary entry recorded, now please go to OT.

coro u tine

How can you not remember how to spell that -.-
cor ou tin e

c o r ou t ine
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
09 Oct 2013 05:52 PM
If you spell it incorrectly, you'll get an error when your code gets to that line, and then you can fix it. It's really not hard to spell it right, though. Alternatively, you can use the roblox-defined functions Spawn and Delay, which are kinda like coroutines. Emphasis on 'kinda'.
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
09 Oct 2013 05:53 PM
just as you have a co - pilot , another pilot operating the plane at the same time..

you have a co - routine, another routine operating at the same time...

thats how i pronounce it in my head anyway.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Oct 2013 05:55 PM
I pronounce it:

koro oo tine
Report Abuse
HaxHelper is not online. HaxHelper
Joined: 19 Dec 2009
Total Posts: 1208
09 Oct 2013 05:56 PM
don't use spawn() pls
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
09 Oct 2013 07:06 PM
Coroutines are great.

coroutine.resume(coroutine.create(function()
while wait(1/60) do
local mouse = player:GetMouse()
local mY = mouse.X
local mX = mouse.Y
cursor.x.Position = UDim2.new(0,0,0,mX)
cursor.y.Position = UDim2.new(0,mY,0,0)
p.Main.BodyGyro.cframe = CFrame.new(p.Main.CFrame.p,mouse.Hit.p)
local cf = p.Adds.Camera.CFrame
Workspace.CurrentCamera:Interpolate(cf+Vector3.new(0,50,0),cf,1/2)
end
end))
Report Abuse
crapjackguywithgun is not online. crapjackguywithgun
Joined: 01 Aug 2013
Total Posts: 152
09 Oct 2013 07:26 PM
kuh oh roo tainz
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
10 Oct 2013 09:34 AM
Koh roo teen.

@OP: It's, in my opinion, better to use a longer, logical name than a shorter, illogical name.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
10 Oct 2013 10:09 AM
it's co-routine not coro-utine or corout-ine or whatever cntkillme said...

and, I pronounce it "co-routine".
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
10 Oct 2013 11:18 AM
I use to say it in my head like quarantine :p

~The alpaca of the acting world.
Report Abuse
MrCurrency is not online. MrCurrency
Joined: 05 Feb 2011
Total Posts: 16
10 Oct 2013 11:22 AM
@Mrgames, aha same!
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
10 Oct 2013 12:09 PM
co root ean
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
10 Oct 2013 12:15 PM
co roo teen
Report Abuse
crapjackguywithgun is not online. crapjackguywithgun
Joined: 01 Aug 2013
Total Posts: 152
20 Oct 2013 11:51 AM
co roo teen
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
20 Oct 2013 02:18 PM
coa roh teeyn
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
20 Oct 2013 02:58 PM
@cnt koro oo teen is how I say it
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
20 Oct 2013 02:58 PM
kor oo teen*
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
20 Oct 2013 02:59 PM
"Coroutines are great."

>gives a single while loop as an example where coroutines are completely unnessessary.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
20 Oct 2013 03:00 PM
"gives a single while loop as an example where coroutines are completely unnessessary."
this
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
20 Oct 2013 04:23 PM
Do you know how to spell routine? Do you know how to spell co? Do you know how to put them together?
Report Abuse
StudioTM is not online. StudioTM
Joined: 06 May 2013
Total Posts: 3454
20 Oct 2013 08:56 PM
i saay co-urtrainz
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
20 Oct 2013 11:14 PM
courtine
Report Abuse
reptoslicerguy is not online. reptoslicerguy
Joined: 01 Jan 2010
Total Posts: 2098
21 Oct 2013 02:32 AM
qowuteans
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
21 Oct 2013 03:16 AM
[ Content Deleted ]
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