Variable increases more than it needs to [FIXED]

strong textUse this template to make awesome bug reports:

Your username: On this account (Team Bee)

What kind of device are you using?: IPad 7,5

1 sentence description of the problem (I was doing _________, and then __________ happened): I was decreasing a variable by 1 then it decreased by three

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Do the code I put
  2. Decrease by 1?
    ….

I expected this to happen: Variable decreases by 1

But instead this happened: Variable decreases by three

Here’s a sweet screenshot:
image
Does it seem to small to make it a topic?
I did it anyways @ArcadeGrounds
Here is a link

7 Likes

Someone help meh

3 Likes

O Srry I told you in the yctayhch

3 Likes

Bruh, the intro is the same as our Team Thirteen collab, can you give credit please?

4 Likes

okay then…

2 Likes

It could be the
Check once if (4 < money) {
Increase (money) by -1
} end

1 Like

Have you checked your code so you don’t have multiple places when that variable is changed?

4 Likes

By the title, it seems to have been a code issue that has been resolved.

But if you haven’t found the cause, you have 3 clones of the “Food” object, all of which are decreasing the value by 1.

1 Like

I don’t really need I
This anymore. Thanks for helping this out @Awesome_E and @noobcoder2000, @William04GamerA clive?

1 Like