Home | Customize | Blog | Extras | Log In | Info
Manual | D&D icons | GML Parser | Archive | Iso City
Username: Password:  
About | Features | Directory | Banners | Contact

Designing Games with GameMaker
Designing Games with GameMaker

Repeat statement

A repeat statement has the form

repeat (<expression>) <statement>

The statement is repeated the number of times indicated by the rounded value of the expression.

Example
The following program creates five balls at random positions.

{
  repeat (5) instance_create(random(400),random(400),ball);
}

Search Search


Alternative versions Alternative versions

You can also read this manual on one single long page (± 1.5 mb)

Also available in: Dutch French German

ZIP Download helpfile

Advertisement Advertisement

GameMaker Manual