Here's a simple trick for scores:
Create a global variable: Score
Load your ten numbers (0to9) as sprite frames (name: ScoreSprite). Give your sprite an instance variable, 'index'. Place, let's say, four instances. Give the 'index' values 0 to 3. Use this line:
Every Tick -> ScoreSprite -> Set animation frame to int(mid(str(zeropad(Score, 4)), ScoreSprite.index, 1))
— 19:21:01
Trying this out, but the parser is telling me this it requires a string not a number where the 4 is. Has anything changed since this was written?