A wait until block Andrea the ability to put text into a variable.
I’d use it for this type of project:
Lots of different projects
Here are some examples of Hopscotch code that could be improved if we had this:
With the variable suggestion: My old OMIER project would be a lot simpler, and it would be very useful with keyboards.
Wait until suggestion: I can’t think of something right now, but I wanted to use this in a project when I was making it, but couldn’t.
Here is an example design I’ve made:
A wait until block would look just like a “Wait ___ Milliseconds” block but instead it would say “Wait until ___”.
I’ve seen something similar in another programming languages, it looks like this:
I think scratch has a “Wait until” block, and most programming languages allow you to put strings in variables.
The only problems would be with the “Increase value” blocks, but I know how it will work anyway since Scratch has that too and I’ve experimented with it.
Currently Hopscotch doesn’t have a “wait until” block, but a way to do this without a preset block is by using a custom block (let’s call it “waitUntil”) with the following code:
If(testStatementVar !== wantedState){
waitUntil()
}
//Written in Javascript
But hopefully THT will add a “wait until” block soon.