Welcome to my Website!

This is a paragraph! Here's how you make a link: Neocities.

Here's how you can make bold and italic text.

Here's how you can add an image:

Here's how to make a list:

Green flag discussion

On Facebook

Good morning. I just threw together a quick video about multiple Green Flags and an example of how they actually fire off. Then a method to avoid Double Green Flag click situations using only 1 Green Flag in projects. I hope this is helpful. Happy Scratch'n video

Thank you for this Matt. Really useful. One question though: why do you use a broadcast message? Would a custom block not be preferable?

Matt Stone A custom block doesn't guarantee completion. They start and the blocks underneath immediately run. The "and wait" from the broadcast will guarantee no blocks after will execute until the broadcast terminates

Matt Stone Also, custom blocks are local to the sprite or backdrop you put them on. A broadcast can be shared across sprites, so if you have sprites with local variables those can all be initialized and set up in proper order using broadcast.

David Brown Oh, I didn't know that about custom blocks vs broadcast. I can see why you're using a broadcast now. So you only need one "when flag clicked" event in the whole project - it could be in any sprite. The rest can be controlled off the broadcast event.

Matt Stone David Brown Yup if you only have 1 Green Flag in the project you can manage the order of execution. Initialize all the variables across the project. Then set up all the costumes and such that may depend on those values across the project. Then start your loop.

Matt Stone David Brown If you look at this project you'll see that the sprite Block-A handles the order of the project. The rest triggers when it is time. This is just how I keep things in order. There is no "right" way. But mainly wanted to show that the Flags dont run at the same time and help avoid Double Green Flag clicks. https://scratch.mit.edu/projects/316795450/editor/

David Brown Matt Stone Thank you for sharing your knowledge. Most helpful.

Ken Adelglass It is smart to code Scratch games with a single point of entry like most typed languages. If you teach these concepts in block languages it is easier to transition to typed languages but Scratch makes it too easy to write messy disorganized code.

To learn more HTML/CSS, check out these tutorials!