Re: SPEED
Quote from Forum Archives on December 18, 1997, 10:12 amPosted by: friedo <friedo@...>
On Wed, 17 Dec 1997, Larry Westphal wrote:> Will FB3 support some sort of SPEED control that sets the rate at which
> text characters are sent to the display screen or other input/output
> devices?
>I find the best way to control speed is by throwing a dummy loop in
somewhere. For example, suppose I want to slow down the operation of FN
doSomethingSlowly.LOCAL FN doSomethingSlowly
FOR blegh = 1 TO 100
FN DoCoolAnimationEffects
FOR dummy% = 1 to 100 'dummy loop to waste time
NEXT
NEXT
END FNOf course, this gets unpredictable as machines get faster, so instead, you
could do:LOCAL FN doSomethingSlowly
FOR blegh = 1 to 100
FN DoCoolAnimationEffects
DELAY delaytime% 'delay specified num of ticks
NEXT
END FN> Applesoft BASIC had this little gem. It was great for kids programs.
>
> EXAMPLE:
> Slowest: SPEED = 0 Fastest: SPEED = 255
>
> Thanks.
> _Larry
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Check out my web site at: www.execpc.com/~lawest
> OR OR
> Mail me at: mailto:lawest@execpc.com
> OR
> _Larry Do Something
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@welovegod.org>
>
Posted by: friedo <friedo@...>
> Will FB3 support some sort of SPEED control that sets the rate at which
> text characters are sent to the display screen or other input/output
> devices?
>
I find the best way to control speed is by throwing a dummy loop in
somewhere. For example, suppose I want to slow down the operation of FN
doSomethingSlowly.
LOCAL FN doSomethingSlowly
FOR blegh = 1 TO 100
FN DoCoolAnimationEffects
FOR dummy% = 1 to 100 'dummy loop to waste time
NEXT
NEXT
END FN
Of course, this gets unpredictable as machines get faster, so instead, you
could do:
LOCAL FN doSomethingSlowly
FOR blegh = 1 to 100
FN DoCoolAnimationEffects
DELAY delaytime% 'delay specified num of ticks
NEXT
END FN
> Applesoft BASIC had this little gem. It was great for kids programs.
>
> EXAMPLE:
> Slowest: SPEED = 0 Fastest: SPEED = 255
>
> Thanks.
> _Larry
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Check out my web site at: http://www.execpc.com/~lawest
> OR OR
> Mail me at: mailto:lawest@execpc.com
> OR
> _Larry Do Something
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@welovegod.org>
>