
-----------------------------------
chalcids
Tue Dec 20, 2011 6:16 pm

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

-----------------------------------
Tony
Tue Dec 20, 2011 6:18 pm

RE:Typewriter print
-----------------------------------
[tdoc]put[/tdoc], maybe some [tdoc]delay[/tdoc]

-----------------------------------
trishume
Tue Dec 20, 2011 7:06 pm

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")
[/code]

WARNING: I haven't tested this so it may not work

-----------------------------------
Alex C.
Wed Jan 11, 2012 9:40 pm

Re: Typewriter print
-----------------------------------

WARNING: I haven't tested this so it may not work

It does :D
:idea: however, if someone can make the sound effect like in the animation, that would be a better effect!
