How do I make a looping block?

Hello, I want my Start button to change colors every, I don't know, 5 milliseconds. So it can indicate that you should press it. My original idea was this:


In the background, it sets the Start value to 0.
And as Complicated it seem's, it also doesn't work, any ideas?

http://www.appinventor.org/bookChapters/chapter18.pdf

http://www.appinventor.org/bookChapters/chapter17.pdf

You need an elseif ladder.

Or you need a list to store all the colors and pick one color in some order.

1 Like