menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
What do coroutines do?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
What do coroutines do?
DuckD0nald
Join Date: 2008-08-21
Post Count: 9870
#142770606
Wednesday, August 06, 2014 11:11 AM GMT
Are coroutines a way of running several copies of the same functions at once with no delay? Like, say if I had a script that was meant to shoot many bullets at the same time, would I use coroutine instead of a loop?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
AnonyAnonymous
Join Date: 2013-06-23
Post Count: 6332
#142770843
Wednesday, August 06, 2014 11:18 AM GMT
Perhaps this article might help you,
http://wiki.roblox.com/index.php?title=Beginners_Guide_to_Coroutines#What_are_coroutines_really_useful_for.3F
However, a loop could also be useful for sending large amounts of bullets at once.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right