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

#1 2007-10-14 07:24:48

alasdair
Scratcher
Registered: 2007-10-14
Posts: 2

Message

What is a message and how does the scratch 'receive' it?
[blocks]<when I receive[. when I receive what?

Offline

 

#2 2007-10-14 07:35:43

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

Re: Message

A message is called a broadcast. Let's say I had a "Play" button, and when the player clicks it the sprite the player's controlling shows. You say to make this work:

For the play button:
                     
<when[ playbutton  ]clicked>
<broadcast[ playclicked]
<hide>

For the Sprite the player's controlling:

<when green flag clicked>
<hide>
<when I receive[ playclicked]
<show>

Understand? The message/broadcast sends a message to another sprite, causing it to do something when the first sprite is clicked or something. Sorry it's complicated, you might want to ask someone else 'cause i can't explain it any better.

Last edited by Technic20 (2007-10-14 07:36:57)


~~~Check Out My Projects!~~~

Offline

 

Board footer