This tutorial does not use a brush, so don't worry that the push bar is the last layer!
import material
Do you think that's true? NO, NO, NO, it's actually like this
That's right, the middle is empty! The middle is empty! The middle is empty! (Say important words 3 times)
Then, create a new shape
Next, split this into two shapes
Pay attention to the position of the shape
The shape has been completely done (except for the small icon) and then Scratch will start. Of course, you also need to prepare a shape. You can name it BIG. I don’t need to say the role of BIG.
First, determine the position of the push bar
Then, set a width so that the bar that needs to be moved moves to the other half
Then, the previous maximum progress value is useful to determine the position that needs to be moved to
Finally, to make sure that if the progress bar reaches the other half or exceeds the other half, we change his shape