Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Custom block booleans don't update when the boolean's output changes
- ScratchCat1038
-
Scratcher
1000+ posts
Custom block booleans don't update when the boolean's output changes
My browser / operating system: MacOS Macintosh X 10.15.7, Chrome 138.0.0.0, No Flash versions detected
I created a custom block to handle the movement scripts without having to copy the same code 4 times. Here it is:

The “key” boolean is supposed to be the key () pressed boolean, and when it detects it's true it will move the player until the key () pressed boolean no longer reports true. However I noticed it doesn't update the boolean, and so even when the boolean inside the input becomes false the custom <key> boolean still reports as true. Not sure if it's a bug or if it's intentional, but if it's the latter please tell me so I can make a suggestion for having the option to have the boolean update.
I created a custom block to handle the movement scripts without having to copy the same code 4 times. Here it is:

The “key” boolean is supposed to be the key () pressed boolean, and when it detects it's true it will move the player until the key () pressed boolean no longer reports true. However I noticed it doesn't update the boolean, and so even when the boolean inside the input becomes false the custom <key> boolean still reports as true. Not sure if it's a bug or if it's intentional, but if it's the latter please tell me so I can make a suggestion for having the option to have the boolean update.
- medians
-
Scratcher
1000+ posts
Custom block booleans don't update when the boolean's output changes
It's likely because it detects the value of the block when the custom block is run, so no updates are detected.
If this isn't what is happening, please send the link to the project
Edit: If you're using 0 for both x and y by the way when the sprite isn't moving, you could repeat the script until both are 0
If this isn't what is happening, please send the link to the project
Edit: If you're using 0 for both x and y by the way when the sprite isn't moving, you could repeat the script until both are 0
Last edited by medians (Aug. 7, 2025 17:42:52)
- ScratchCat1038
-
Scratcher
1000+ posts
Custom block booleans don't update when the boolean's output changes
It's likely because it detects the value of the block when the custom block is run, so no updates are detected.Exactly. I'm not sure if this is a bug or not but to me it feels more like a bug rather than an intended feature.
- Discussion Forums
- » Bugs and Glitches
-
» Custom block booleans don't update when the boolean's output changes