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

#1 2009-02-16 11:45:21

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Special Broadcasts

I found some special internal broadcasts when experimenting with some things on scratch connections. One is "Scratch-StartClicked", which simulates clicking the start button. Please tell me if you find any more. I think they all start with "Scratch-".


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

#2 2009-02-16 19:09:20

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Special Broadcasts

You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...


Jens Mönig

Offline

 

#3 2009-02-16 19:26:34

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Special Broadcasts

Jens wrote:

You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...

2 things  smile

1. Shouldn't You Type The Name Of The Sprite Somewhere in-between besides just "Scratch-MouseClickEvent"?
2. Since You Know Alot About The Program How 'Bout You Make A opic That Lists All The Codes  big_smile  Could You? Please  wink

Offline

 

#4 2009-02-16 19:27:37

techy
Scratcher
Registered: 2008-12-17
Posts: 100+

Re: Special Broadcasts

very cool!


Guppy Inc. making projects famous!
http://web-geeks.com/techy.gifhttp://web-geeks.com/grid.gifhttp://web-geeks.com/challenge.gif

Offline

 

#5 2009-02-16 20:39:09

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Re: Special Broadcasts

Jens wrote:

You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...

Wow! I didn't know that one... That could be useful...  wink


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

#6 2009-02-16 20:55:22

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Re: Special Broadcasts

Magnie wrote:

Jens wrote:

You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...

2 things  smile

1. Shouldn't You Type The Name Of The Sprite Somewhere in-between besides just "Scratch-MouseClickEvent"?
2. Since You Know Alot About The Program How 'Bout You Make A opic That Lists All The Codes  big_smile  Could You? Please  wink

I don't think that you can say a specific sprite, it will use the sprite that it is on. Also, Jens, can I edit the Scratch Source and add more? Also, is there one that acts like you pressed a key on the keyboard?

Last edited by abeair (2009-02-16 20:56:58)


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

#7 2009-02-16 22:00:31

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Special Broadcasts

abeair wrote:

Magnie wrote:

Jens wrote:

You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...

2 things  smile

1. Shouldn't You Type The Name Of The Sprite Somewhere in-between besides just "Scratch-MouseClickEvent"?
2. Since You Know Alot About The Program How 'Bout You Make A opic That Lists All The Codes  big_smile  Could You? Please  wink

I don't think that you can say a specific sprite, it will use the sprite that it is on. Also, Jens, can I edit the Scratch Source and add more? Also, is there one that acts like you pressed a key on the keyboard?

1. ok..
2. Maybe Code "Scratch-ButtenPressed?(Letter)Event" or "Scratch-ButtenPressed(Letter)Event"? Just Some Random Ideas...Hope It Works  big_smile

Offline

 

#8 2009-02-17 02:30:02

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Special Broadcasts

Hi Magnie and abair,

those two messages are the only "reserved" broadcast names I could find, which you can actually just type into a broadcast block. There is, of course, another internal message type for keyboard input, but that one needs an argument (the key) which you can't specify manually in a Scratch project.


Jens Mönig

Offline

 

#9 2009-02-17 10:05:06

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Special Broadcasts

Jens wrote:

Hi Magnie and abair,

those two messages are the only "reserved" broadcast names I could find, which you can actually just type into a broadcast block. There is, of course, another internal message type for keyboard input, but that one needs an argument (the key) which you can't specify manually in a Scratch project.

Ok  smile

Offline

 

#10 2009-02-17 19:06:16

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Re: Special Broadcasts

Jens wrote:

Hi Magnie and abair,

those two messages are the only "reserved" broadcast names I could find, which you can actually just type into a broadcast block. There is, of course, another internal message type for keyboard input, but that one needs an argument (the key) which you can't specify manually in a Scratch project.

Oh, ok.


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

Board footer