Help with "repeat x times" command

Automageddon

  • Posts: 10
I don't seem to get the "repeat x times" command to work.
In the code attached, I'm trying to repeat 3 times a series of actions (every second randomise a number then depending on the result, draw an actor and add a value to a list then every 0.5 seconds delete the actor), but the loop continues forever.
I tried adding a print command so it will print the list content at the end of the loop and I get confirmation it worked, but it never prints. Any help?
I just can't understand what I'm getting wrong

carpetguy

  • Posts: 47
You've got the 'do every 1 seconds' inside the repeat so it will keep on doing every 1 second forever, the loop can finish... Put it underneath the 'do every 1 seconds'
I don't get why you want to repeat though.
If you only want it to happen thrice put the 'repeat 3 times' inside 'do every 1 second' around everything else and 'set action count' above 'set Actions'.
I AM DEFINITELY AWAKE (SORRY FOR THE CAPS, MY CAPS-LOCK BUTTON IS BRoKEN :D)

Automageddon

  • Posts: 10
First off: thanks for your answer!

If I try your suggestion, I would create 3 random numbers every second, what I'm trying to do is to create one random number, every second, thrice.

I would a workaround, not elegant but effective, I created one "after 1 second" (create random number etc), "after 2 seconds" etc, it seems to work and the list prints fine, but it's very long-winded and messy...