forked from cs10/hourofcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bjchoc_01.html
14 lines (10 loc) · 983 Bytes
/
bjchoc_01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class="lab-page">
<h3>Step 2: Make Alonzo move to a random spot when clicked</h3>
<p>Now, <strong>add blocks so that every time Alonzo is clicked it moves to a random position</strong> (between -190 and 190 in the <em>x</em> direction and between -130 and 130 in the <em>y</em> direction).</p>
<p>Oval-shaped blocks like <img src="/bjc-r/img/blocks/pick-random-empty-args.png" alt="pick random () to ()" title="pick random () to ()" /> can <em>report</em> their values as inputs to other blocks. To use an oval-shaped block that way, drag it into the blank input slot in another block.</p>
<hr />
<p>One good way to find out what a block does is to click on it and try it out. </p>
<p>Also remember that you can right-click on it (control-click on a Mac) and choose "help..."</p>
<hr />
<p align="center">Our step 2 solution: <a target="_blank" href="http://tinyurl.com/bjchoc2"><kbd><strong>tinyurl.com/bjchoc2</strong></kbd></a></p>
</div>