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

#1 2010-10-03 08:25:37

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Green flag problem!

[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)


Marzipan11 must learn to not spoil

Offline

 

#2 2010-10-03 09:09:07

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Green flag problem!

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

 

#3 2010-10-03 12:18:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Green flag problem!

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.)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-10-03 17:18:19

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Green flag problem!

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)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#5 2010-10-03 19:19:55

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Green flag problem!

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...


Marzipan11 must learn to not spoil

Offline

 

#6 2010-10-03 19:58:16

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Green flag problem!

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-MouseClickEvent

I don't really think so...

You don't think what?


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2010-10-03 19:59:41

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Green flag problem!

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-MouseClickEvent

I don't really think so...

How can you not think so? It works!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#8 2010-10-03 20:00:44

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: Green flag problem!

Harakou nailed it.
big_smile -12three- big_smile

Offline

 

#9 2010-10-04 00:02:18

XplodingEggs
Scratcher
Registered: 2009-12-09
Posts: 100+

Re: Green flag problem!

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)


http://i54.tinypic.com/102kqr7.jpg

Offline

 

#10 2010-10-04 00:04:49

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Green flag problem!

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!  big_smile  (Disadvantage: probably won't work online.)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2010-10-04 00:09:52

XplodingEggs
Scratcher
Registered: 2009-12-09
Posts: 100+

Re: Green flag problem!

harakou wrote:

I agree! For example, a script that resets the project by itself if needed!  big_smile  (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...  sad  Whatever, doesn't really matter  wink
Edit: What happened with my siggy above? Lol, probably just the server screwing up again.  tongue

Last edited by XplodingEggs (2010-10-04 00:10:58)


http://i54.tinypic.com/102kqr7.jpg

Offline

 

#12 2010-10-04 00:19:25

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Green flag problem!

XplodingEggs wrote:

What happened with my siggy above? Lol, probably just the server screwing up again.  tongue

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.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#13 2010-10-04 00:57:45

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: Green flag problem!

Harakou wrote:

XplodingEggs wrote:

What happened with my siggy above? Lol, probably just the server screwing up again.  tongue

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?  yikes


Yawn, another boring text signature. I should really make something better.

Offline

 

#14 2010-10-04 06:03:31

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Green flag problem!

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

 

#15 2010-10-09 17:58:19

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Green flag problem!

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-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.

[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)


Marzipan11 must learn to not spoil

Offline

 

#16 2010-10-11 21:40:01

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: Green flag problem!

mathematics wrote:

Interesting!

You can also broadcast scratch-startclicked to activate "when green flag clicked" scripts!

That is interesting  big_smile


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

Board footer