GM: repeat

From GMpedia.org Wiki

Jump to: navigation, search
This article is about the Game Maker repeat loop, for the loop in general, see repeat.

The Game Maker repeat is a type of different loops in Game Maker. Its syntax is as follows:

repeat(<number>)
{
    <statement>
}

The repeat loop repeats the <statement> a <number> of times. No infinity-loops can occur, but the problem with the repeat loop is that it loops for a constant number.

[edit] See Also

Personal tools