[SOLVED] Repeating an action a certain amount of times


I would like to repeat an action the amount of times as the value of a global variable.
Example: global variable = 5, then create 5 objects at this position.

I have seen examples of this in various posts but I can never find the “repeat” condition. Usually I can start typing in something and it comes up but not this one.

Would anyone be able to help?

Extra events are found under the + button on the top right.

Thank you! I will try that!

So I have it as:
Repeat Global.Variable(OFFENSE) times

But it doesn’t seem to work. Can anybody see what im doing wrong?

Global.Variable() isn’t a thing that exists. Likely the cause of your issue.

You can see all expressions available here: Expressions reference [GDevelop wiki]

Thanks again everyone!

Working now

1 Like