Discuss Scratch

testingscript64
Scratcher
100+ posts

how to estimate the time it takes to type something?

I need help trying to estimate how many seconds it takes to type something based on the length of a sentence and the average typing speed.
I'm trying to make delays more realistic based on typing things.
testingscript64
Scratcher
100+ posts

how to estimate the time it takes to type something?

Can anyone help?
SemolinaPilchard
New to Scratch
86 posts

how to estimate the time it takes to type something?

Uhm, do you have an average typing speed figured out? This is the fiset [rst thing you will need. Are you taking it as the literal human average, an average for the player of your game thus far, or what? Figure that out (or tell me which and I'll see if I can help!) and then you can do the following…

when I receive [ (or whatever starts this project]
set [time to type v] to [((length of (sentence you're using)) / (average typing speed)) ]
wait (time to type) secs

Replace the receive with whatever you need to initiate the process (flag clicked, sprite clicked, etc.). Then, you will need at least two variables. Set average typing speed to whatever value you are using, based on letters per second, before you begin this script. Just create time to type, it will be set during the script. Sentence you're using can either be a variable that you have set to the proper sentence ahead of time, or just plain type the sentence into the block Divide the length of that sentence and the average typing speed together to give time to type it's value. And then wait time to type seconds for a delay that lasts that long (though this is just to show how it could be used for delaying, use it however).

If anything was unclear or I misunderstood just ask
testingscript64
Scratcher
100+ posts

how to estimate the time it takes to type something?

Okay, thank you.
testingscript64
Scratcher
100+ posts

how to estimate the time it takes to type something?

SemolinaPilchard wrote:

Uhm, do you have an average typing speed figured out? This is the fiset [rst thing you will need. Are you taking it as the literal human average, an average for the player of your game thus far, or what? Figure that out (or tell me which and I'll see if I can help!) and then you can do the following…

when I receive [ (or whatever starts this project]
set [time to type v] to [((length of (sentence you're using)) / (average typing speed)) ]
wait (time to type) secs

Replace the receive with whatever you need to initiate the process (flag clicked, sprite clicked, etc.). Then, you will need at least two variables. Set average typing speed to whatever value you are using, based on letters per second, before you begin this script. Just create time to type, it will be set during the script. Sentence you're using can either be a variable that you have set to the proper sentence ahead of time, or just plain type the sentence into the block Divide the length of that sentence and the average typing speed together to give time to type it's value. And then wait time to type seconds for a delay that lasts that long (though this is just to show how it could be used for delaying, use it however).

If anything was unclear or I misunderstood just ask

You are correct but there is one thing you did wrong, why do you mention the average typing speed as letters per second? Isn't supposed to be words per minute? I couldn't find any average letters per second, only words per minute. Do you have a different formula for words per minute?
SemolinaPilchard
New to Scratch
86 posts

how to estimate the time it takes to type something?

I have it set as letters per minute because the length block returns a value based on characters (letters).

Figure out an average word length (five seems pretty standard) and divide the length value by it.

Powered by DjangoBB