Wait until block

Yep, and you meant for it to repeat until a conditional is true, right? Cause that’s definitely what it seems like.

1 Like

I like that, there just needs to be a slot like normal repeat blockx

1 Like

I’ve used this in Scratch a few times, it would be really useful if it was on Hopscotch as well.

1 Like

Oh yeah haha. I was thinking wait until for a moment

3 Likes

Ahaha. Everyone makes mistakes so often. @Ana, how do you think about this

3 Likes

https://forum.gethopscotch.com/t/repeat-until-block/35513?u=nobody

1 Like

@leaders merge the existing topic with the one Nobody mentioned in the last post? Or perhaps clive?

4 Likes

Nvm

4 Likes

Wow noice :)

I think theres already a way to do that

When (var) = (num):
(Coding stuff)
Set var = (any num rather than something)

But i think the wait until block is much much better :clap:

1 Like

A feature I’d like to see in Hopscotch is: a repeat until block

I’d use it for this type of project: loading screen (mostly)

Here are some examples of Hopscotch code that could be improved if we had this: A lot of loading screens could be perfected, because it would tell when to stop loading, this would be especially helpful if you had a loading bar included.

Here is an example design I’ve made:

I’ve seen something similar in another programming languages, it looks like this: I haven’t seen anything similar in other programming languages.

5 Likes

ton topics like this, but nice idea

3 Likes

Yes which means we really need it lol

2 Likes

Ive seen one:

var = "This is a variable."
i = 0

while var == "This is a variable":
    i += 1
    if i > 11:
      break
4 Likes

Nice idea but maybe sbyp :)) there are already a lot of topics about this

8 Likes

I do not think this is a good topic to merge suggestions to, since the topic itself is not a suggestion?

2 Likes

I checked to see if there were. It doesn’t look like I found them! I’m glad more people have thought of this.

1 Like

One workaround would be

When var x ≠ 1
Set invisibility to 0

When var x = 1
Set invisibility to 100

Hoi

I think there should be a repeat until block.
It would repeat until a variable or such equals something else. You could also use these things < > and such

Is this a…
  • Good idea
  • Bad idea

0 voters

@Ana @AwesomeOnion
(I hope I tagged the right people)

3 Likes

Good idea, but this has been suggested before — maybe search before you post next time.

2 Likes