[blocks]<when I receive[ scratch-startclicked
<say[ hey, did you just press the green flag? ]for( 10 )secs>[/blocks]
If you use the script above, you will notice that pressing the green flag actually broadcasts scratch-startclicked.
[blocks]<broadcast[ scratch-startclicked[/blocks]
This one acts like it presses the green flag button.
Green flag code: (not the green flag hat code)
Open scratch.
Shift - click in the loop in the R of scratch. Scratch is at the top left corner.
Click turn fill screen off.
Click the white space that appears.
Click open - browser.
A green browser should open. This is squeak, the scratch plugin.
Go to scratch-UI-planes>scratchFrameMorph>menu/button actions>shoutGo
This is the green flag code.
Fix the code.
Right click and click accept.
Type your initials and click accept.
Exit the browser.
Shift - click in the loop in the R of scratch. Scratch is at the top left corner.
Click turn fill screen on.
Sorry, this is only what happens when you click the green flag. Not the hat block.
If you want to save anyway, Shift - click in the loop in the R of scratch. Scratch is at the top left corner, then click save image, then close scratch. If you can't change it back, reinstall scratch.
Last edited by zorket (2010-10-06 17:41:48)
Offline
Interesting!
You can also broadcast scratch-startclicked to activate "when green flag clicked" scripts!
Last edited by mathematics (2010-10-03 09:50:16)
Offline
Never knew that! It's just a minor glitch with the way Scratch is programmed. "scratch-startclicked" must be the event for the "When green flag clicked" block. (Since it's just a "When I receive" hat block with a set event, which is raised by clicking the green flag.)
Offline
Harakou wrote:
Never knew that! It's just a minor glitch with the way Scratch is programmed. "scratch-startclicked" must be the event for the "When green flag clicked" block. (Since it's just a "When I receive" hat block with a set event, which is raised by clicking the green flag.)
Yeah, there's also one that clicks all the sprites. I forget what it is though...
Ah, I remember, it's: Scratch-MouseClickEvent
Last edited by ScratchReallyROCKS (2010-10-03 17:22:15)
Offline
ScratchReallyROCKS wrote:
Harakou wrote:
Never knew that! It's just a minor glitch with the way Scratch is programmed. "scratch-startclicked" must be the event for the "When green flag clicked" block. (Since it's just a "When I receive" hat block with a set event, which is raised by clicking the green flag.)
Yeah, there's also one that clicks all the sprites. I forget what it is though...
Ah, I remember, it's: Scratch-MouseClickEvent
I don't really think so...
Offline
zorket wrote:
ScratchReallyROCKS wrote:
Harakou wrote:
Never knew that! It's just a minor glitch with the way Scratch is programmed. "scratch-startclicked" must be the event for the "When green flag clicked" block. (Since it's just a "When I receive" hat block with a set event, which is raised by clicking the green flag.)
Yeah, there's also one that clicks all the sprites. I forget what it is though...
Ah, I remember, it's: Scratch-MouseClickEventI don't really think so...
You don't think what?
Offline
zorket wrote:
ScratchReallyROCKS wrote:
Harakou wrote:
Never knew that! It's just a minor glitch with the way Scratch is programmed. "scratch-startclicked" must be the event for the "When green flag clicked" block. (Since it's just a "When I receive" hat block with a set event, which is raised by clicking the green flag.)
Yeah, there's also one that clicks all the sprites. I forget what it is though...
Ah, I remember, it's: Scratch-MouseClickEventI don't really think so...
How can you not think so? It works!
Offline
Offline
Wow! I never knew that! Although I don't really think it is a glitch, just a 'useful' feature. I figure I could find several uses for this.
Edit: I think you could reproduce the 'forever' block to save memory space, since forever blocks each take up 3mb, if you used a script like this:
[blocks] <when green flag clicked>
<play sound[ anything ]and waits>
<broadcast[ scratch-startclicked
Last edited by XplodingEggs (2010-10-04 00:06:34)
Offline
XplodingEggs wrote:
Wow! I never knew that! Although I don't really think it is a glitch, just a 'useful' feature. I figure I could find several uses for this.
I agree! For example, a script that resets the project by itself if needed!
(Disadvantage: probably won't work online.)
Offline
harakou wrote:
I agree! For example, a script that resets the project by itself if needed!
(Disadvantage: probably won't work online.)
Yeah, like if you were in a game and you ran out of lives, you could wait a certain amount of time, with a costume showing saying 'game over, game will reset in _ seconds' and then when that time went up, reset the game. But also, I realise that with what I said for reproducing the forever block, then that would also reset all the other sprites scripts to...
Whatever, doesn't really matter
Edit: What happened with my siggy above? Lol, probably just the server screwing up again.
Last edited by XplodingEggs (2010-10-04 00:10:58)
Offline
XplodingEggs wrote:
What happened with my siggy above? Lol, probably just the server screwing up again.
![]()
It's probably the forum blocks you posted before it. If you don't close the tags properly, all the text after the blocks is formatted in boldface type.
Offline
Harakou wrote:
XplodingEggs wrote:
What happened with my siggy above? Lol, probably just the server screwing up again.
![]()
It's probably the forum blocks you posted before it. If you don't close the tags properly, all the text after the blocks is formatted in boldface type.
Even signatures?
Offline
XplodingEggs wrote:
Wow! I never knew that! Although I don't really think it is a glitch, just a 'useful' feature. I figure I could find several uses for this.
Edit: I think you could reproduce the 'forever' block to save memory space, since forever blocks each take up 3mb, if you used a script like this:
[blocks] <when green flag clicked>
<play sound[ anything ]and waits>
<broadcast[ scratch-startclicked
You have forgotten to close the [blocks] tag, or in another words, you have forgotten to put the [/blocks] tag.
On-topic: Yes it is! It's a very useful feature.
Last edited by mathematics (2010-10-04 06:04:10)
Offline
mathematics wrote:
XplodingEggs wrote:
Wow! I never knew that! Although I don't really think it is a glitch, just a 'useful' feature. I figure I could find several uses for this.
Edit: I think you could reproduce the 'forever' block to save memory space, since forever blocks each take up 3mb, if you used a script like this:
[blocks] <when green flag clicked>
<play sound[ anything ]and waits>
<broadcast[ scratch-startclickedYou have forgotten to close the [blocks] tag, or in another words, you have forgotten to put the [/blocks] tag.
On-topic: Yes it is! It's a very useful feature.
[blocks][/blocks]
[blocks][/blocks]Hey, you forgot it yourself!
The way: [blocks][blocks]<when green flag clicked>
<play sound[ anything
<broadcast[ scratch-startclicked[/blocks][/blocks]
Last edited by zorket (2010-10-09 18:00:06)
Offline
mathematics wrote:
Interesting!
You can also broadcast scratch-startclicked to activate "when green flag clicked" scripts!
That is interesting
Offline