I need help with a block code

Yes. You have 6 different blocks for 6 different times. Instead, we can narrow it down to 1. This is how:
Step 1.
Create a trigger that broadcasts to itself, let’s call the channel tick. Tick will not be the channel that the overlay receives from, though. Set the trigger delay to however long you want the interval inbetween time changes, like 30 seconds or whatever. Also make sure you wire a device that triggers it for the first time to start the trigger clock.
Step 2.
Create a block for the trigger under when triggered, and have it broadcast on the channel timechange. Now we can get into the overlay’s code.
Step 3.
Set the default value of the time property to 9. Set the overlay’s default text to 9:00 AM as well. Create a new block for the overlay under when receiving on channel 'timechange' . Now, the code.
Step 4.
Have the code set to this:


This should work, let me know.
Make sure to read the whole reply.

2 Likes