ScratchData LogoScratchData
Back to TheLogFather's profile

Bug: "when timer" has wrong first evaluation of variable

THTheLogFather•Created October 31, 2015
Bug: "when timer" has wrong first evaluation of variable
16
9
712 views
View on Scratch

Description

>>>> FIXED with v442 of the player! <<<< Just a quick project here, to demonstrate what I've mentioned in a couple of other projects about the "when timer/loudness" hat block with a variable - that it doesn't evaluate it correctly on the first run. E.g. see comment inside http://scratch.mit.edu/projects/79396438 If you use a variable in a "when timer/loudness" hat block, then Scratch can run the script even when the condition is NOT true – in particular, on the very first run of the project after loading (after that, it all gets evaluated correctly). That's why you should enclose the script it runs with a proper "if" check of the same condition (see inside), so it will only get run if the condition really *is* true...

Project Details

Project ID86073904
CreatedOctober 31, 2015
Last ModifiedDecember 21, 2015
SharedOctober 31, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root