This is a game building block and all code blocks are commented. This block provides an example of how to display a score without showing a variable. Your score is shown in the top right of the stage and a couple of ways are provided to interact with it. In the top left there is a variable slider where you can select an input score between 0 to 99999 while in the bottom left there is a green tick to start and red cross to stop automatically increment the input score. The score is created by cloning a single sprite that contains 10 costumes, 1 for each number from 0 through to 9. It is cloned for each digit in the maximum score, for this project 5 digits. Each clone knows its position within the score with the first being the right most digit, the second being the one to its left and so on. Each clone reads the whole input score but concentrates on its corresponding digit and constantly updates itself to make sure what is shown is always correct.
Drag the slider from left to right to change the input score or click the go and stop buttons to automatically increment the score.