Posted By
|
Message
|
vrba79
Registered 17/03/2007
Points 125
|
21st March, 2007 at 01:35:44 -
What is it, what does it do, and what is the advantage of using it?
[Will watch Aquaman cartoons for beer money.]
|
Tiles Possibly Insane
Registered 06/12/2002
Points 2339
|
21st March, 2007 at 04:43:46 -
A fastloop is basically a loop that runs inside an MMF event. And it does looping
Fastloops are very useful when you work with instances of an object for example. Gives you a way to select a specific instance to perform a specific action at just this instance. And this all in one MMF Mainloop.
Or when you want to work with a list. Remember that MMF2 runs minimum 50 Mainloops per second. Now imagine that you have 100 Items to parse into this list. Without fastloop it may need two seconds to insert all items one by one. With fastloop you are able to perform everything in one MMF mainloop. Which means 1/50 second when your Mainloop is at 50.
Free graphics,Free Games
http://www.reinerstilesets.de
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
21st March, 2007 at 04:58:55 -
Yup, basically, it can execute one event multiple times really fast. It's useful for a number of reasons, like filling up a level that's made with a level editor, generating a list of items, or improve precision on a custom platform movement engine.
Old member (~2004-2007).
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
21st March, 2007 at 07:57:35 -
What is fastloop?
Fastloop is the special feeling you get when you come in first place!
It's when your girl tells you she loves you, and then gives you money!
Fastloop's like a box of Lucky Charms- with only the marshmellows!
..It's following all the rules!
<<WHAT!!??!>>
FASTLOOP DOO LAH!!
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
Radix hot for teacher
Registered 01/10/2003
Points 3139
|
21st March, 2007 at 09:35:51 -
always
---start loop "aLoop" for 10 loops
on loop "aLoop"
---[do stuff]
Is equivalent to:
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
always
---[do stuff]
The advantage is far tidier code, the ability to run a set of events a certain number of times or stop them part way through, the ability to call a certain set of code at any time in your events list, and the ability to retrieve the number of times the events are looped as a value. You can do all sorts of tricky things quite easily if you take full advantage of fast loops.
n/a
|
Paul_James
Registered 02/07/2002
Points 1320
|
21st March, 2007 at 09:51:52 -
hey radix wouldnt the fastloop do it faster than doing 10 always in a row???
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.
Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
21st March, 2007 at 10:08:32 -
As far as I'm aware, doing 10 always events is just as fast.
n/a
|
vrba79
Registered 17/03/2007
Points 125
|
21st March, 2007 at 12:07:31 -
Strangely I'm stilly confused.
[Will watch Aquaman cartoons for beer money.]
|
Deleted User
|
21st March, 2007 at 12:39:10 -
You should do it like this. :^)
always -> run loop "lolinternet" 100 times
on loop "lolinternet" -> run loop "lolinternet" 100 times
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
21st March, 2007 at 13:00:48 -
Crash
Old member (~2004-2007).
|
vrba79
Registered 17/03/2007
Points 125
|
21st March, 2007 at 14:00:35 -
What's a common use for it?
Aside from obscure loop references I don't understand.
What game function is accomplished easier from using it?
[Will watch Aquaman cartoons for beer money.]
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
21st March, 2007 at 14:10:31 -
"like filling up a level that's made with a level editor, generating a list of items, or improve precision on a custom platform movement engine."
"Fastloops are very useful when you work with instances of an object for example. Gives you a way to select a specific instance to perform a specific action at just this instance. And this all in one MMF Mainloop."
Good morning.
Old member (~2004-2007).
|
axel Crazy?
Registered 05/02/2005
Points 4766
|
21st March, 2007 at 14:11:24 -
A common use?
Radix said: "the ability to run a set of events a certain number of times or stop them part way through, the ability to call a certain set of code at any time in your events list, and the ability to retrieve the number of times the events are looped as a value"
DaVince said: "filling up a level that's made with a level editor, generating a list of items, or improve precision on a custom platform movement engine."
Tiles said: "Fastloops are very useful when you work with instances of an object for example. Gives you a way to select a specific instance to perform a specific action at just this instance. And this all in one MMF Mainloop.
Or when you want to work with a list. Remember that MMF2 runs minimum 50 Mainloops per second. Now imagine that you have 100 Items to parse into this list. Without fastloop it may need two seconds to insert all items one by one. With fastloop you are able to perform everything in one MMF mainloop. Which means 1/50 second when your Mainloop is at 50."
n/a
|
axel Crazy?
Registered 05/02/2005
Points 4766
|
21st March, 2007 at 14:12:02 -
Agh, DaVince beat me to it
n/a
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
21st March, 2007 at 14:28:40 -
Proves how vrba doesn't quite read all posts through carefully, with so many examples.
Old member (~2004-2007).
|
|
|