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-".
Offline
Jens wrote:
You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...
2 things
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 Could You? Please
Offline
Offline
Magnie wrote:
Jens wrote:
You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...
2 things
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 Could You? Please
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)
Offline
abeair wrote:
Magnie wrote:
Jens wrote:
You could try broadcasting "Scratch-MouseClickEvent", which triggers the "When sprite is clicked" event hat...
2 things
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 Could You? PleaseI 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
Offline
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.
Offline
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
Offline
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.
Offline