ScratchData LogoScratchData
Back to geek62's profile

Typewriter

GEgeek62•Created January 10, 2016
Typewriter
6
5
134 views
View on Scratch

Instructions

This program is a re-usable Sprite that acts like a typewriter. Set the string you want it to type in a variable, then broadcast a message telling it to do the typing. The biggest headache is that Scratch programs are not case-sensitive, so it can't tell "a" from "A". It assumes they are all lower-case, but if there is a caret "^" in front of a letter then the typewriter makes it upper-case. It also recognizes \n as "newline" and \w as "wait". Another headache is that letters are different widths, so the program has an internal array telling how much space to leave for each one. That was a nuisance to work out, and probably could be improved.

Description

At the time I made this project, I did not know how to make Scratch tell the difference between upper-case and lower-case letters, so the project has a funny way of dealing with that. But now I know how to do that, my "Pen Text" project does that, and this one really should not have to do that "caret" stuff. Maybe someday I'll fix it. It works by having a costume for each letter, changing costumes and stamping each letter of your string. The ridiculous event name is a movie quote. In case you were wondering.

Project Details

Project ID93586374
CreatedJanuary 10, 2016
Last ModifiedApril 20, 2024
SharedJanuary 10, 2016
Visibilityvisible
CommentsAllowed