Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Scratch is doing math wrong!!!
- cops911
- Scratcher
100+ posts
Scratch is doing math wrong!!!
I have never had this problem before, but Scratch has been a little glitchy the past few days (for me, at least). Well, here it is: https://scratch.mit.edu/projects/146123658/
Last edited by cops911 (Feb. 19, 2017 20:36:19)
when green flag clicked
wait until <(Love and Fave)=[true]>
set [cops911 v] to [happy]
- lance4dragons
- Scratcher
100+ posts
Scratch is doing math wrong!!!
That's a little thing called the floating point decimal.
-L̴̩̹̫͈̰̬̪̩͔̗͇̳̲̬͙͎͂̋̌ͬͧ͆̒ͧ̐ͪ̏̓̌͑ͦ̃ͯ͌͡ąͦͪ̇ͨ̽̐͗ͤͤͭ̇̕͘͡҉̲̻̳̺͕͔̳ṉ̶̡͚̦̰̳͍̤͈͇͈͚̤̲̱͇͍͂̓̍ͭ̒́ͪ͐̆̏̇͊̈́͋ͨͫ͛̕͢ͅc̷̨̪͇͈̫̏̀̆̈̿͛͗̈́̂̅̀͟͝ͅe̸ͧͧͫ̈̀̄̽͗ͥ̀ͫͩ̓̊̒͝͏̙̙̙̹̣̰̥̘̣͚̘̼͙̭̟4͇̫͙̩͇̣̳̹̄͂ͭ̓͑̉̾ͯ̕d̷̷̛̐̒̍ͣ̂̏͑̆̄̌̑͏̢͙͔̘̝̩̬̝̬͍͇r̴͒̾́̏̌̉ͪ̂̆̇ͧͮͧ́̎͋҉͎̥̭̦̘͓̗̯͕̹͕̲͜͞ḁ̢̛̯̱͓͇̗͉͔̩̥̲̪̣̗͙̜͌̇͐̉ͨ̅ͧģ̧̫̯̙͙̳̘͙ͫͤ̊͆̒̂͗̀̓̉ͧ̚̕͞ͅǒ̸̸̗̠͕̑̂̆̈́ͧ̅͋͛̆̓ͬ̾̚n̡̂͊̓͒ͧ̔̍̾͘҉̥̙̞̜͎̱͓̤̠̣͙̼̖̼̺͍͚͖͠s̸̤̼̮̹͍̥̝̩̤̏̂͋̑
You are being watched…
- cops911
- Scratcher
100+ posts
Scratch is doing math wrong!!!
It works now…wierd
when green flag clicked
wait until <(Love and Fave)=[true]>
set [cops911 v] to [happy]
- TheLogFather
- Scratcher
1000+ posts
Scratch is doing math wrong!!!
I suspect you hit this Scratch bug in modified operator blocks.
It means that if you have an operator block that you've changed (i.e. you right/shift-clicked and chose a different operator symbol, e.g. changing it from add to subtract), then when you duplicate that block (or any script containing it), it will ‘flip’ back to showing its original operator symbol – but it will still *behave* as the operator you changed it to.
In other words, what it shows for the operator symbol is ‘out of sync’ with what the block actually does.
Fortunately, it's only temporary – when you reload the project, the operator block shows the correct symbol (which is probably why it started working again).
It means that if you have an operator block that you've changed (i.e. you right/shift-clicked and chose a different operator symbol, e.g. changing it from add to subtract), then when you duplicate that block (or any script containing it), it will ‘flip’ back to showing its original operator symbol – but it will still *behave* as the operator you changed it to.
In other words, what it shows for the operator symbol is ‘out of sync’ with what the block actually does.
Fortunately, it's only temporary – when you reload the project, the operator block shows the correct symbol (which is probably why it started working again).
Last edited by TheLogFather (Feb. 20, 2017 21:41:56)
Siggy the Kumquat slayer:
Main account: DadOfMrLog –– Frameworks for basic pen-rendered 3D in scratch (see studio). Examples:
- - - - 3D Text - - - - - - Simple shapes - - - Controllable structures - - - On the ground - - - - - - In space - - - -
- - - - 3D Text - - - - - - Simple shapes - - - Controllable structures - - - On the ground - - - - - - In space - - - -
- cops911
- Scratcher
100+ posts
Scratch is doing math wrong!!!
YES! I was also having problems with it changing to something else, but when I tried to change it back, it changed a completely different operator that I didn't even click on. It means that if you have an operator block that you've changed (i.e. you right/shift-clicked and chose a different operator symbol, e.g. changing it from add to subtract), then when you duplicate that block (or any script containing it), it will ‘flip’ back to showing its original operator symbol – but it will still *behave* as the operator you changed it to.
when green flag clicked
wait until <(Love and Fave)=[true]>
set [cops911 v] to [happy]
- Discussion Forums
- » Bugs and Glitches
- » Scratch is doing math wrong!!!