Re: just like the movies
- Posted by jbrown1050 at hotpop.com Jan 25, 2003
- 388 views
procedure delay(integer pause) --pause is the number of seconds to delay, --i use a while loop instead of sleep() as that --allows subsecond precision. t = time() + pause while time() < t do --waiting ... watching ... changing ;] end while end procedure global function putsy(integer h, sequence text) --passing h as an integer lets it work on other things beside the --screen, not sure why you'd want to do this tho ... if h = -1 then --return error return -1 end if for i = 1 to length(text) do puts(h, text[i]) delay(5) --pause every 5 seconds (use rand() if you want a random pause) end for --return success return 0 end function On Fri, Jan 24, 2003 at 04:50:07PM -0500, dubetyrant at hotmail.com wrote: > > Hi, > > Does anyone know of an algorithm that will display characters and numbers in a > sequencial fashion, > with a slight delay in between each character, "just like in the movies". I > was hoping someone could > just kind of point me in the right direction, I just have no idea how to > approach it...should I try to > use the time() function to cause the delay? Because I want it to work on any > machine, regardless of > speed. > > Thanks in advance, > JDUBE > > ==^^=============================================================== > This email was sent to: jbrown1050 at hotpop.com > > > TOPICA - Start your own email discussion group. FREE! -- /"\ ASCII ribbon | \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME |