Can anyone explain to me why my delay procedure isn't working?

I need a “delay function” for an app I’m working on and I created these blocks to test out but it doesn’t seem to work as I’m expecting.
I have a single button and what I’m trying to do is that when the button is clicked, it changes colour to BLUE then 1 second later it changes to RED and finally 1 second later it changes back to GREY.
However, when I click the button it temporarily changes to a kind of yellow and then back to grey an when I click the button a second time (or third, or fourth) it doesn’t appear to do anything at all.
Can someone please explain what’s happening here?


Why is a wait procedure generally a bad idea?
The model of event processing in App Inventor by Lyn

Please use the Please Wait method by Scott


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

Thank you, I’m trying the “please wait method” now…

If I have more than one button that needs a delay does that mean I need a separate clock for each one?


See this sample app...!msg/mitappinventortest/BOj2-ThEe3s/VlmXdcVOAgAJ

Thank you!

Thanks for sharing Taifun, I've tried several delay examples, none of them worked. This one does!

1 Like