|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
Makes text appear letter by letter
Str1 - Text to be displayed.
A,B - Row and colum to display text.
A, B, T, Str1
All TI calculators
:For(T,1,length(Str1
:Text(A,B,sub(Str1,1,T
:rand(5
:EndWe use a For( loop over the length of the string to go through the string letter by letter. In order to make the spacing come out right, instead of figuring out the right coordinate to display each character at, we display the first T characters of the string starting from the beginning. The rand(5) provides a split-second delay to achieve the typewriter effect.
For multiple lines with the typewriter effect, you can combine this routine with the one to wordwrap text.
Error Conditions
- ERR:DOMAIN is thrown if the string doesn't fit entirely on the screen.
Related Routines
.