tell
block image(s) need to be updated (see relevant piazza post). The solution file definitely needs to be updated too (both with tell and with the new sprite names), and perhaps also images in the TG. Also search site for other instances of tell
. --MF, 11/6/17Teacher feedback from 2017-2018: [students] not understanding the need to create their own phases after reading page 2, step 6 where other languages are shown --MF, 3/6/19
En esta página, tú vas a cambiar el programa para que el personaje no se mueva siempre, finalizando hasta que ellos se toquen.
forever
block with a repeat until
block.repeat until
block. Set it to repeat until it is touching
Leader.touching
Follower.move
block with a small number so Follower doesn't catch Leader too quickly.move
is 0?forever
on 1.3.6. --MF, 8/6/19When a program keeps doing the same thing and doesn't ever stop, it's called an infinite loop.
mouse y
, which isn't built into their language). So this example translates them to numFishand
MouseY().
()or box after
MouseYis that
MouseY()is a procedure call even though it doesn't take any inputs.
The script
would be written as
TODO: change mouseY() to camelCase and edit image to use a box instead of () after mouseY. --MF, 8/27/19
REPEAT UNTIL(MouseY() < 0) { DISPLAY(numFish) }
Remember, you don't need to learn to write the made-up language used on the AP exam. You just have to be able to read and answer questions about it.
Right now, when the sprites meet, they just stop. Make them have a conversation when they stop. You can do that by adding code like this to Leader's script. Make up your own conversation. You can use any language you can type.
A code segment is a sequence of connected instructions that carry out a purposeful action, such as the one pictured on the left, which animates a conversation. The instructions in the code segment are carried out in order, from top to bottom.