The Daily Click ::. Forums ::. Klik Coding Help ::. What is Fastloop?
 

Post Reply  Post Oekaki 
 

Posted By Message

Devernath



Registered
  04/12/2004
Points
  54

VIP Member
1st March, 2008 at 14:57:12 -

Ok, I have been hearing about it for a while, and I apparently have it on my computer (and I didnt even know about it...) and I hear that it's very useful.

But like, what does it do?

How do you use it, for what kinds of things do you use it for....stuff like that.

Anyone know of an FAQ somewhere that I could look up for basic information about Fastloop?

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
1st March, 2008 at 15:05:11 -

In programming a loop takes a function, and repeats it X number of times, "instantly".

For example, doing:

x = 0;
Loop 10 times{
x + 1
Does X == 10?


Would read TRUE for X == 10, even though it occurs directly after the X+1 statement; That exact same code is equivalent to writing:

x = 0;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
x + 1;
Does X == 10?



Its exactly the same in kliking terms; Think of it as Copy/Pasting the code that you would have Inside of the "Loop" over and over that many times right after the part where you start the loop. Every single one of these events will take place within a single frame, whereas if you simply had "X+1", it would take 10 frames to reach x == 10.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
1st March, 2008 at 15:07:43 -

http://en.wikipedia.org/wiki/For_loop

Or read that

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st March, 2008 at 15:37:01 -

yeah, so a fastloop would do something quicker than TGF or MMF would normally be able to.

 
.

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
1st March, 2008 at 19:07:16 -

I wouldn't say it neccesarily does anything quicker, unless you're comparing a fastloop with an MMF loop.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
1st March, 2008 at 19:25:04 -

It's not quote "faster" in terms of MMF loops, it's faster because it does a bunch of mini-loops inside of 1 MMF loop.

Say you wanted to add to a counter really really fast, but still be able to sensitively detect values in between. For example, if you wanted to get from 0 to 100 in less then 1 second, but still detect if the counter ever equals 65. You can't do this by simply always adding to the counter, because at 55 loops per second, MMF2 is only going to reach 55 in a second, not 100. If you add 100 to the counter, then you're going from 0 straight to 100. Can't do this either.

So what do you do? You use fast loops.

Start of frame:
Set fastloop to 100

On Loop:
Add 1 to Counter

On Loop
+ Counter = to 65:
Event Fires

This means that within 1 MMF2 loop (55 loops per second) you can go from 0 to 100, but still be capable of firing an event that detects that the counter had to pass 65, to get to 100. Why? Even though you're going from 0 to 100 in 1 MMF2 loop, you're still going through each value, 1.. 2.. 3.. 4.. 5.. etc. This means that as long as you let MMF2 know that the events you're asking for is in a loop, hense the "On Loop", then MMF2 will be capable of detecting those intricate values such as when a counter hits 65, in a visual jump from 0 to 100.

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
1st March, 2008 at 19:33:16 -

To put it simply, if you run a loop then every event that has that loop's title will be run a set number of times instead of just once.

So if you have an event with a loop that is run ten times, that event will be run 10 times to every 1 of any other event.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
1st March, 2008 at 19:35:00 -

The simple way is not always the best way to learn how something like this works. Unless you truly know how fast loop functions, you wont be able to use it to it's full potential. The most simple way to put it, is exactly how I put it in my first line. A fast loop is nothing more then a mini-loop that runs many loops inside of 1 MMF2 loop.

 
http://www.facebook.com/truediamondgame

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
1st March, 2008 at 19:42:43 -

That however is something exceptionally confusing to someone who hasn't programmed before.

I think the best way is to experiment. The fastloop is under the Special object in MMF.

You can start a loop through actions, and use it in events to tell MMF which event should be looped and which shouldn't.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
1st March, 2008 at 19:45:49 -

If by program, you mean coded, then neither have I. What I said was not complex in any way shape or form, so by saying that I can only assume you looked at how much I wrote and not actually read it. I was simply giving an example of how it would be used, so that he can better understand what it does.
My explanation had nothing to do with anything outside of MMF2, because heres the funny part. Never truly cared to learn how loops in coding actually work, I can only assume they're similar based on your confusion of my explanation though.
Please read other explanations before giving your own and assuming it's better.

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
1st March, 2008 at 19:53:16 -

Nick is a pretty amazing coder

 
n/a

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
1st March, 2008 at 19:56:10 -

I did read what you said, what i meant was that someone who hadn't used MMF much before quite probably wouldn't even understand the concept of what a loop was. I know when i started using MMF i never stopped to think that the events were run in any order, it was only when i started learning a language in my computer class that i better understood MMF.

I was merely providing an alternative explaination to someone who make not fully understand how MMF works. I'm sorry for calling your explanation confusing.

Image Edited by the Author.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
2nd March, 2008 at 00:50:32 -


Originally Posted by Nick!
I did read what you said, what i meant was that someone who hadn't used MMF much before quite probably wouldn't even understand the concept of what a loop was. I know when i started using MMF i never stopped to think that the events were run in any order, it was only when i started learning a language in my computer class that i better understood MMF.

I was merely providing an alternative explaination to someone who make not fully understand how MMF works. I'm sorry for calling your explanation confusing.

Image Edited by the Author.



Sorry if what I said felt like I was attacking you for attacking me. I was sort of just defending my explanation and I understand what you're saying, so let's just leave it at that.

 
http://www.facebook.com/truediamondgame

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
2nd March, 2008 at 05:14:40 -

As long as users don't assume a fastloop 'makes objects move faster'

 
n/a

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
2nd March, 2008 at 06:29:57 -

I think simply calling them a "Loop" instead of Fastloop would be easier (and actually more descriptive).

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com
   

Post Reply



 



Advertisement

Worth A Click