Posted By
|
Message
|
Pixelthief Dedicated klik scientist
Registered 02/01/2002
Points 3419
|
2nd March, 2008 at 09:36:29 -
Is there some architectural difference between the fast loop object and the MMF built in loops? I know that when you call a loop from the fastloop object, it will call the ENTIRE loop before continuing down the event list, even including actions in the exact same event. So if you have
On pressing space:
=Set counter to 1
=Start Loop 0 for 1 loop
=Set counter to 3
On Loop 0:
=Set counter to 2
then the game would actually return 3 when it resolves the frame, not 2. So it would read through the command lind and feed it into the read/eval/print loop as:
=Set counter to 1
=Set counter to 2
=Set counter to 3
instead of the intuitive
=Set counter to 1
=Set counter to 3
=Set counter to 2
if that "Set counter to 2" had taken place as normal code instead of a loop.
Is this the same with the built in MMF looping? Because it seems very very odd to have the code skip to a new event before resolving the current one, but that just seems to be how the fast loop object works.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
|
Devernath
Registered 04/12/2004
Points 54
|
2nd March, 2008 at 09:38:07 -
Well, i use TGF.......and based on everyone's response it dosnt seem likely i will need to use it anytime soon.
It's still a pretty confusing concept, but thanks for the replies.
n/a
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
2nd March, 2008 at 11:12:15 -
Originally Posted by KlikMasta Claus I wouldn't say it neccesarily does anything quicker, unless you're comparing a fastloop with an MMF loop.
yes, I am.
.
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
2nd March, 2008 at 12:40:38 -
Ok, fair enough
n/a
|
Silveraura God's God
Registered 08/08/2002
Points 6747
|
2nd March, 2008 at 14:54:53 -
Originally Posted by Nick! I think simply calling them a "Loop" instead of Fastloop would be easier (and actually more descriptive).
I disagree. That's like telling a 7 year old that you can't subtract 3 from 4 because it just wont work. Exactly what I was taught. Now I get to middle school and suddenly we can but when we do, a whole new negative world is introduced. The term fast loop is misleading I agree, but to just call it a loop would leave room for much confusion later down the line when you start learning how MMF2 actually functions and flows, so that your games can take advantage of it, be more efficient, and allow for more complex things.
Teach more difficult stuff in an easy well explained manner. It's much easier to understand where you're going, if you have a rough idea of the direction you need to be in. That way you aren't walking blind.
http://www.facebook.com/truediamondgame
|
Cazra Crazy?
Registered 24/07/2002
Points 4472
|
2nd March, 2008 at 15:03:59 -
Fastloop is made of AWESOME and ELECTROLYTES!!!
Fastloop will make you WIN at repeating a small section of code REALLY REALLY FAST!!!
n/a
|
Pixelthief Dedicated klik scientist
Registered 02/01/2002
Points 3419
|
2nd March, 2008 at 15:14:46 -
Uh, fast loop IS the exact same structure as looping in any other programming language; just like a FOR loop in Java/C++/Scheme/Malbolge. Well maybe not malbolge.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
|
|
|