Suggestion: Antidote block

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

The ability to revert everything back to the original with one block

I’d use it for this type of project:

Some project where a lot of stuff changes to an object or clones

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

We wouldn’t have to tire ourselves out using so many blocks

Here is an example design I’ve made:

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

N/A

The Antidote block would do everything— Speed, color, size (even if used with grow/shrink blocks, not just set size), width, height, look (changed with set text/set image), direction, trail color— every property of an object except values, layer, and position would get reverted back to the way it was at the beginning of the project.

@Omtl @Pomtl

13 Likes

I don’t really get how this’d work
Could you maybe explain it a bit more?

5 Likes

Elaborate more maybe?

3 Likes

I explained it at the end.

Did you SBYP? If not, I will elaborate. (Please lmk)

2 Likes

What
Ofc I SBYP, why is that a problem
But what does it do?

And also, just me, but I wouldn’t tag pomtl for this, as they are a project group

3 Likes

…? I did read the whole thing throughout twice by was still confused. So it’d be great if you could elaborate

5 Likes

Same, I did it 3 times and I got
It basically deletes the object

3 Likes

An example shown in my screenshot is if I changed Octo’s opacity and angle, the antidote block would revert them back to the original.

Note: Antidote does NOT delete objects. It just reverts all its properties (except layer, position, and values) back to the original.

1 Like

Ok, but couldn’t you just set angle 0 and opacity 100?

3 Likes

I don’t want people to get too stressed with too many blocks, especially if there were other properties (like trail width, object color, speed, etc).

I know I wouldn’t get stressed
I would think this makes my code look advanced

3 Likes

They could always just make a custom block.

But I think I get what you’re saying and I can kinda see how itd be useful

4 Likes

“Opacity” (root word: opaque) means the inability to see through something. In old Hopscotch, 100 opacity meant 0 invisibility.

Ok?

1 Like

Ah, thanks Fearless!

1 Like

Like bro smh
I know what opacity is and I know what it does

I can see how this could be useful, but I’d prefer things over this (ahem sound extension)

3 Likes

Let’s stop arguing, ok?

Let’s see what other people think of this.

Yes, let’s stop

3 Likes

I don’t get it but ok

3 Likes

Look at the previous discussion for some details.

1 Like

I did

3 Likes