Game Maker's Garage Forum

Game Creation => SilverCreator => Topic started by: Xiphos on February 24, 2010, 05:50:12 PM

Title: Re: FOR explained
Post by: Xiphos on February 24, 2010, 05:50:12 PM
Yes!
Title: Re: FOR explained
Post by: Charlo on February 25, 2010, 03:47:22 PM
I personally never use FOR loops in any language.  I prefer to make almost everything a WHILE.  Just my style, though.
Title: Re: FOR explained
Post by: Connors on February 25, 2010, 06:11:42 PM
WHILE? ... How does this work?
Title: Re: FOR explained
Post by: Connors on February 28, 2010, 06:06:04 PM
Aww crap I removed the first post
Title: Re: FOR explained
Post by: Silverwind on February 28, 2010, 06:10:15 PM
lol! ;D Were you trying to edit it?

While loops are pretty neat. The logic is basically "WHILE (condition = true) THEN do this"

Here's an example with Javascript syntax:

Quote
while (x==1) {
  Do this please.
  }