Discuss Scratch
- Discussion Forums
- » Suggestions
- » Make the slider range a block.
- CodeComet6161
-
500+ posts
Make the slider range a block.
set [ v] range to [] to [] with a interval of []::variablesWith this block, sliders will have more flexibility, and here's why.
1. Boolean inputs
With the usual sliders, we're not able to change the range of it during a project. Not only that, but because it's a separate thing, you aren't able to put boolean inputs in it either. This block would change that. Here's an example:
set [ v] range to ((foo) + (1)) to ((foo) + (11)) with an interval of [1]::variables//would be set to a range during the middle of a project2. Change the interval
With the usual sliders, you can only have an interval of 1, and if you put decimals in it, it would become an impossibly large range of numbers, especially if the original range is already high. However, with the block shown above, you can now choose custom intervals. Here's an example:
set [ v] range to [0] to [8] with an interval of [2]::variables//would be 0, 2 ,4, 6, 8 instead of 0, 1, 2,...Along with that, we would have these blocks:
change [ v] [start v] by []::variables//could be start, interval, or end
set [ v] [start v] to []::variables
- Creator-H
-
100+ posts
Make the slider range a block.
i'm surprised this hasn't been suggested before, support
- Discussion Forums
- » Suggestions
- » Make the slider range a block.