Extending the power of the ‘Check once if’ block

A feature I’d like to see in Hopscotch is:

Check once if being able to support ‘when touching’, ‘when pressing’ and other conditionals that fit in ‘When’ blocks.

I’d use it for this type of project:

Lol I dunno what kind of project you would use this in but you know that it would be useful

Here are some examples of Hopscotch code that could be improved if we had this:

To make something activate while you are touching two buttons at once (without variables)

Here is an example design I’ve made:

Wait seconds (0.5)

Check once if ((self) is touching(button))

Set (Error) to (1)

I’ve seen something similar in another programming languages, it looks like this:

Well actually I haven’t.

14 Likes

First non creator post
lol yes we need this

5 Likes

Well yes, some things can be solved. Example:

When var = 1

Check once if self is touching thing

destroy

Can also be used as

When self is touching thing

Check once if var = 1

destroy

Someone might have created a topic on this already tho

5 Likes

This idea is really concurred

I would love to see it implemented to hopscotch! It would make code much cleaner

5 Likes

Nice idea nice

3 Likes

9 Likes

image
I’d also like to be able to close/collapse the top and bottom parts of a check if else block separately.

6 Likes

Nice idea :+1:

3 Likes

Great idea! I remember always wishing this existed, there’re so many things you can do with it!

4 Likes

Wragh!! We all need this…

3 Likes

Sic idea, we def need this

3 Likes

Nice idea, I can see when this can be used! It would be cool to see this in Hopscotch.

3 Likes

I had many an occasion to use this yesterday while working on a project - do support!

3 Likes

This is a good idea.

Here’s a situation where you might use this.

Whenever you clone something, the clone will do whatever the original object will do in some cases.

This would help if you had it like this (you need to slide to see some parts)

 Check once if (((Self)Clone Index) = 1) and ((self) is touching button)

This would help reduce the amount of objects needed for a project.

3 Likes

And would reduce the amount of blocks needed, reducing lag

2 Likes

Exactly.

2 Likes

Exactly. Man, we really need this!

2 Likes

I mean, I kinda don’t need it but it would be a nice addition for sure!

Have a cookie again :cookie:

3 Likes

Bump bump buuuump!

1 Like