Computer Science Canada

Typewriter print

Author:  chalcids [ Tue Dec 20, 2011 6:16 pm ]
Post subject:  Typewriter print

I want my program to type the text out like a typewriter. how do i do that like
http://objection.mrdictionary.net/go.php?n=5444134

Author:  Tony [ Tue Dec 20, 2011 6:18 pm ]
Post subject:  RE:Typewriter print

put, maybe some delay

Author:  trishume [ Tue Dec 20, 2011 7:06 pm ]
Post subject:  Re: Typewriter print

Maybe something like this:

code:

proc TypewriterPrint(text : string)
  for i : 1..length(text)
    delay(500)
    put text(i) ..
  end for
  put ""
end TypewriterPrint

TypewriterPrint("This will be printed like a typewriter")


WARNING: I haven't tested this so it may not work

Author:  Alex C. [ Wed Jan 11, 2012 9:40 pm ]
Post subject:  Re: Typewriter print

trishume @ Tue Dec 20, 2011 7:06 pm wrote:

WARNING: I haven't tested this so it may not work


It does Very Happy
Idea however, if someone can make the sound effect like in the animation, that would be a better effect!


: