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); }
« If statement | While statement »
Alternative versions
You can also read this manual on one single long page (± 1.5 mb)
Also available in:
Download helpfile
Also available in:
Download helpfile