Wait until block

A new idea for a blue block is a wait until block. Maybe something like this:


That would be very useful (and simple) for projects involving time.

18 Likes

You could use repeat time 1k check once if, but this would be simpler. Most of us would like wait until “Code” = 1 I’m pretty sure

6 Likes

Yeah! This is a good idea, but if there is one thing we don’t want to do, it’s overdo it with adding currently unavailable features (on Hopscotch) from Scratch to Hopscotch.

3 Likes

What a great idea! I would love to see that in the Hopscotch app.

5 Likes

If you are looking for what I think you are, this is possible with custom blocks. Here is an example of a loop that waits for a variable to become true, then continues. THE 1 MILLISECOND DELAY IS IMPORTANT! If it is not there, the entire program freezes and shuts down. I had problems with this before and it took a while to find the problem.

4 Likes

You came up with a smart idea.

The beauty of it is because it is a custom block rather than a repeat loop, it will check every repetition rather than just the first.

Here’s your concept, just 3 months late
Don’t mind the other stuff I messed with.

5 Likes

Woah, cool!

2 Likes

yeah k it seems to work

5 Likes

That looks nice.

3 Likes

Wait is that in the secret blocks?

1 Like

I think it’s just an image of what it could look like.

3 Likes

I think ae has found a way to do this with wait until time stamp.

4 Likes

@fundardo that was just a concept, I do have a functional thing here, and it is super useful:

2 Likes

If they do eventually add it, they should simply the name to just “Wait Until …” It would be a lot easier to understand. Honestly, I think this would be a great addition. It would stop and wait instead of looping like the wait until trick (custom block). It would also be perfect for prompts where it will wait until a certain action is taken.

5 Likes