This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-10-25 12:23:08

Technic20
Scratcher
Registered: 2007-09-16
Posts: 69

Words!

Iv'e seen loads of projects where you type in words and the letters come up on screen.
My Questions are:
What is the script behind this?
How do they do the space function?


~~~Check Out My Projects!~~~

Offline

 

#2 2007-10-25 17:10:38

fbboi999
Scratcher
Registered: 2007-05-17
Posts: 100+

Re: Words!

ummmm... not totally sure, try downloading some of them and seeing


Check out my cool projects!
“Know thy self, know thy enemy. A thousand battles, a thousand victories.”

Offline

 

#3 2007-10-25 19:46:23

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Words!

Not totally sure, but I think there is a sprite with a costume of each letter. When that letter is pressed on the keyboard, it changes to the equivalent costume and stamps itself.

Example:
[blocks]
<when[ A ]key pressed>
<broadcast[ A ]>

<when I receive[ A ]>
<switch to costume[ A ]>
<stamp>
[/blocks]

When you get your downloading problem fixed, download one and take a look!!


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#4 2007-10-25 19:49:34

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Words!

Or maybe even simpler -

[blocks]
<when[ A ]key pressed>
<switch to costume[ A ]>
<stamp>
[/blocks]

Last edited by relyt12101 (2007-10-25 19:49:50)


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#5 2007-10-26 12:49:37

Technic20
Scratcher
Registered: 2007-09-16
Posts: 69

Re: Words!

I tried that. Close, but it puts 2 letters down if you don't tap it gently and it changes the previous word to the same as the next word typed


~~~Check Out My Projects!~~~

Offline

 

#6 2007-10-26 13:20:18

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Words!

<when[ A ]clicked>
<switch to costume[ A]
<change x by( 10 )
<wait(  0.2 )secsc>


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#7 2007-10-26 15:47:18

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Words!

Well you need a curser. When a letter is not being stamped, the costume changes to the curser.

Again, download a typing project when you can.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#8 2007-10-27 10:34:20

Mick
Scratcher
Registered: 2007-03-23
Posts: 100+

Re: Words!

I made a project like that a while ago, but i dont reccomend downloading it because the scripts r sorta bad.  hmm

<say[ lol


Go to www.legoless.com
It's my blog.  big_smile

Offline

 

#9 2007-10-27 11:25:23

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Words!

Here is the link to Mick's-

http://scratch.mit.edu/projects/Mick/1069


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#10 2007-10-27 12:01:21

fantasyangel
Scratcher
Registered: 2007-10-14
Posts: 26

Re: Words!

thats so comefusing  hmm


i have a hart like a angel but it doesn't mean i cant play games like a prow.  wink
my projects might not be much but they mean somthing.

Offline

 

#11 2007-10-30 07:16:47

Mick
Scratcher
Registered: 2007-03-23
Posts: 100+

Re: Words!

Told ya!  lol


Go to www.legoless.com
It's my blog.  big_smile

Offline

 

#12 2007-11-04 10:45:34

Technic20
Scratcher
Registered: 2007-09-16
Posts: 69

Re: Words!

Thanks guys! One more thing: What is the script used to clear all typed letters?


~~~Check Out My Projects!~~~

Offline

 

#13 2007-11-04 11:12:18

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Words!

If the letters are stamped then [blocks]<clear>[/blocks] will do it.
If they are done with [blocks]<say[ foo ]>[/blocks] then an empty say block will clear.

Offline

 

#14 2007-11-05 03:30:23

Betchips
Scratcher
Registered: 2007-11-05
Posts: 1

Re: Words!

I dont see what you mean

Offline

 

#15 2007-11-05 18:18:28

russianbluewitchX
Scratcher
Registered: 2007-10-06
Posts: 3

Re: Words!

What do you mean say Foo? I mean I know the block and such, but why does that help?

Possibly make a clear button and then

[blocks]<when[Clear button]clicked>[/blocks]
[blocks]<broadcast[clear all][/blocks]

And then tell it to:

[blocks]<when I receive[clear all][/blocks]
<switch to costume[no letter]

But I don't know, I havn't tried it. That's my suggestion, you can try it but it won't work. (I think)

Offline

 

#16 2007-11-05 18:54:35

ElMikkino
Scratcher
Registered: 2007-09-19
Posts: 76

Re: Words!

Simpler code:

<when[ Clear button ]clicked>
<clear>


Certified Bunnay Agent
--------ElMikkino-----------

Offline

 

#17 2007-11-10 02:57:49

Technic20
Scratcher
Registered: 2007-09-16
Posts: 69

Re: Words!

Ooh.... that's easy.... i am amazed I didn't see that. Thanks again!


~~~Check Out My Projects!~~~

Offline

 

#18 2007-11-10 08:49:20

nuttakorn
Scratcher
Registered: 2007-11-10
Posts: 4

Re: Words!

I am very newbie in Scratch, I would like to use it to be my mini-games web application that it can be buzz marketing. Do you have any idea to do?

Offline

 

#19 2007-11-10 15:34:03

fantasyangel
Scratcher
Registered: 2007-10-14
Posts: 26

Re: Words!

how do you git pickters in a mesige like this


i have a hart like a angel but it doesn't mean i cant play games like a prow.  wink
my projects might not be much but they mean somthing.

Offline

 

#20 2007-11-10 17:21:23

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Words!

fantasyangel--

Code:

[img]You put the URL of the image here![/img]

If you want to be able to use the blocks, just see the section 'Adding Scratch Blocks', which is right below where you post a message.


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#21 2007-11-11 10:17:03

fantasyangel
Scratcher
Registered: 2007-10-14
Posts: 26

Re: Words!

whats a url im new to this so ..ya


i have a hart like a angel but it doesn't mean i cant play games like a prow.  wink
my projects might not be much but they mean somthing.

Offline

 

#22 2007-11-11 12:32:33

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Words!

A URL (Uniform Resource Locator) is an address for a web page.  Most of the ones you'll see here start with http://scratch.mit.edu/

Offline

 

Board footer