Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / A use of sync and sync rate.

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th May 2005 07:17
Sync can actually make a small text conversation look cooler.
Observe:


The sync rate and sync between each letter makes it as the words are being typed on the screen letter by letter. The sync rate depends on how fast you want the letters to appear in order.

You can have fun with sync, and use it for other things.

Enjoy Life while your still alive.
Enjoy a recees anytime!
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th May 2005 08:10
Any... comments?

Enjoy Life while your still alive.
Enjoy a recees anytime!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 31st May 2005 22:58
It's a good start. You could make it much more efficiently (I have some code that does this, but it's about 18 miles from where I'm sat now).

You could also make this more efficient by having your text in a string, and coding it to pick out the leftmost n characters. This might be a for...next loop, for example. The following 7 lines do the same as your code. Because it uses len$, I can also change the contents of the string to anything of any length and it will still work.



The main issue is that while your program is doing this, it can't do anything else. You could improve this by making your code into a function, and calling it in your main program loop.

BatVink

Login to post a reply

Server time is: 2025-05-16 23:29:21
Your offset time is: 2025-05-16 23:29:21