When is increased by block

Please Clive if there Is already a topic for this.
Have you ever thought of a when increased by block. It acts when an object is increased by something. For example, when (variable) is increased by 2,
shrink by 1.
It saves having to do other thinks like idk what and it goes on how many times the variable is increased. Here is a screen shot.

11 Likes

@art welcome to the Hopscotch Forum!

9 Likes

Cool thing, except does it stack or does it need to be done all in one go

4 Likes

Wait what? Simple math could solve this.

4 Likes

I think something more useful would be “when variable is changed”

5 Likes

I don’t see why that would be useful. Just have a boolean var_is_changed.

3 Likes

Yeah, and I don’t see where this would be useful.

3 Likes

This makes sense, although I’m not entirely sure whether a block like that would be needed, since you can just put the code you want to execute after the variable has increased and put it in a rainbow block below when you change the variable.

I agree!

But still, it’s great that you suggested this, because now the idea can start to develop and maybe grow into something that it is possible that THT adds in the future!

2 Likes

i also want a decrease var ny block

1 Like

this is change v by -1, no i mean +2

1 Like

what i dont understand

1 Like

there is a w ar… between +2 and -1 ±1s attack +2 defeds, please join me and my other fellow +2s

1 Like

wut i am so confused

give me sum backstory

what do u attack

1 Like

hopscotch.

lgbot, this no the time

wut so -1 is evil

why does -1 exist than

LGBOT pls.

@PumpkinGirl I don’t think we need this anymore, Clive?

1 Like

closed on request!