How does a REPEAT loop work?

1 answer

Answer

1182181

2026-07-21 07:31

+ Follow

The repeat loop is very simple. It allows you to repeat a statement or block of code without needing to copy-and-paste it. Here are some examples:

{repeat(5)

{x += 15;}}

{repeat(3)

{x += 15; y -= 5;}}

The number in the parentheses dictates how many times you want to repeat the statement/code block.

You may also use a variable:

repeat(self.x)

{instance_create(irandom(400),irandom(400),object_obj);}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.