Learn to count with an abacus! Click the green flag, then click the "+1" and "-1" buttons to see how the abacus changes based on the current value. You can also use the value slider to change the value as well.
If I were to re-create this project, I'd probably try to clean up the duplicated code with some cloning and sprite-specific variables: it should be possible to create this effect that way, but the differences between how the bottom section beads and the upper section beads behave made me a little unsure when I was first working on it. I think I have a good enough sense of the behavior now, though, that I could do it with some time to experiment and debug! I do like that the abacus supports both "+1" and "-1" operations as well as directly dragging the slider (the former uses an animation to move the beads while the latter uses an instantaneous jump-to-the-correct-value for efficiency). I was inspired by @karenb's use of sliders in her project this morning to try to include one in mine as well. *** Music from https://files.freemusicarchive.org/storage-freemusicarchive-org/music/ccCommunity/Chad_Crouch/Drifter/Chad_Crouch_-_07_-_Starlight.mp3