20.03.2013 Views

Introduction to Computer Science with Scratch and App Inventor

Introduction to Computer Science with Scratch and App Inventor

Introduction to Computer Science with Scratch and App Inventor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To s<strong>to</strong>p a forever block, click the red s<strong>to</strong>p sign above<br />

the stage.<br />

Next <strong>to</strong> the s<strong>to</strong>p sign, there is a green flag but<strong>to</strong>n.<br />

You can have your program start by clicking the<br />

green flag rather than clicking on the blocks in your<br />

script. Once we learn how <strong>to</strong> do this, we will use it<br />

for most of our scripts.<br />

Drag a when (Green Flag) clicked block on<strong>to</strong><br />

the <strong>to</strong>p of your forever loop. Notice that the<br />

green flag block is shaped differently from the<br />

other blocks we have been using. Blocks <strong>with</strong><br />

a curved <strong>to</strong>p don’t allow other blocks <strong>to</strong><br />

attach <strong>to</strong> the <strong>to</strong>p. These blocks are starting<br />

points for our programs. Later on we’ll learn<br />

about some of the other curved blocks as<br />

well.<br />

Now, you can click the green flag <strong>to</strong> start<br />

running your script <strong>and</strong> click the s<strong>to</strong>p sign <strong>to</strong><br />

s<strong>to</strong>p.<br />

Why do we want <strong>to</strong> use the green flag? It might<br />

not see very exciting right now.<br />

If you click the full screen icon in the upper right<br />

h<strong>and</strong> corner of your screen, your stage will take<br />

up the whole screen. In this mode, you don’t<br />

have access <strong>to</strong> the blocks <strong>to</strong> click on, but you will<br />

have the green flag <strong>and</strong> the red s<strong>to</strong>p sign.<br />

Also, as we add more things <strong>to</strong> our projects, you<br />

will see how the green flag allows us <strong>to</strong><br />

coordinate more complicated programs.<br />

mbrace Game Development Workbook Page 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!