Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » The store in my game is making calculations wrong. Please help.
- colorjuice
- Scratcher
100+ posts
The store in my game is making calculations wrong. Please help.
I'm making a game about a dinosaur who tries to get a cookie, (The payment is 5 sticks and 2 pebbles) but when i try to buy the cookie, it says i don't have enough money.
I think it's this block that's going wrong.
(Note: foo = sticks and score = pebbles)
I think it's this block that's going wrong.
<<(foo) > [4]> and <(☁ score) > [1]>>
(Note: foo = sticks and score = pebbles)
what I if told you…
You read first the one wrong.
And that one ^
Goodbye Human
Unless
You aren’t a human?
- WeirdBoi_test
- Scratcher
10 posts
The store in my game is making calculations wrong. Please help.
More information, please! That block isn't going wrong
- colorjuice
- Scratcher
100+ posts
The store in my game is making calculations wrong. Please help.
Ok i shared the project so we can fix it https://scratch.mit.edu/projects/564520500/
Its not finished yet.
Its not finished yet.
Last edited by colorjuice (Aug. 28, 2021 17:36:06)
what I if told you…
You read first the one wrong.
And that one ^
Goodbye Human
Unless
You aren’t a human?
- colorjuice
- Scratcher
100+ posts
The store in my game is making calculations wrong. Please help.
It worked! Thanks! I see the mistake. You are checking for 5 pebbles and 2 sticks, not 5 sticks and 2 pebbles. Swap the variables around.
what I if told you…
You read first the one wrong.
And that one ^
Goodbye Human
Unless
You aren’t a human?
- Discussion Forums
- » Help with Scripts
- » The store in my game is making calculations wrong. Please help.