Hint 1: Show
Hint 2: Show
Hint 3: Show
| Term | Meaning |
|---|---|
| Sprite | Character |
| Stage | Background, where sprites are put |
| Backdrop | Different designs of background |
| Costume | Different designs of the same sprite |
go to x: () y: () block?
When do the characters in a game/story/movie go to their starting positions? At the start, middle or end?
go to x: () y:() at the start (Just under the when green flag clicked block)
TIP: Drag the sprite to the desired position, then when taking a go to x: () y:() block it will have the current coordinates
Why is the glide () secs to x: () y: () block not making the sprite move?
Where is the glide () secs to x: () y: () block telling the sprite to go?
Where is the sprite now?
Should the glide () secs to x: () y: () start from somewhere else?
Where should the go to x: () y: () block be put? (See Why is the sprite not going back to where I want it?)
glide () secs to x: () y:() at the start (Just under the when green flag clicked block)
TIP: Drag the sprite to the desired position, then when taking a glide () secs to x: () y:() block it will have the current coordinates
How do I make another sprite do something?
What blocks can you use to tell a sprite something?
broadcast (message1 v) and when I receive (message1 v)
broadcast (message1 v) from the sprite/stage that is sending the message. when I receive (message1 v) in the sprite/stage that will receive the message
The copies aren't moving
Is the code running on the **copies** or the **original**?
How can I make something move to a different position each time?
Is there any block that does things randomly?
go to (random position v)
How can I get a different number each time (for example, to move to a different position in only the x/y direction, or to turn a different amount)?
Is there any block that gives you a random number?
What numbers do you need to put in that block?
The pick random () to () block provides a *random number* in the range between the left box and the right box, inclusive. This means that pick random (1) to (10) could provide either 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10.
Why is the sprite running the code below (e.g. moving) while still talking?
Which say::looks block are you using?
Do you want to use the say::looks block that takes time to finish running?
The say [] block continues to the code below immediately. The say [] for () seconds block keeps the speech bubble up for the specified number of seconds, during which time the code stays paused on the say [] for () seconds block.
Why is the sprite stuck talking instead of running the code below (e.g. dancing)?
Which say::looks block should you be using?
The say [] for () seconds block keeps the speech bubble up for the specified number of seconds, during which time the code stays paused on the say [] for () seconds block. The say [] block continues to the code below immediately.
Why is the sprite stuck playing the sound instead of running the code below (e.g. dancing)?
Which sound block are you using?
Do you want to use the sound block that takes time to finish running?
The play sound ( v) until done block plays the sound to completion, during which time the code stays paused on the play sound ( v) until done block. The start sound ( v) block continues to the code below immediately.
Why is the sprite running the code below (e.g. moving) while still playing the sound?
Which sound block should you be using?
The start sound ( v) block continues to the code below immediately. The play sound ( v) until done block plays the sound to completion, during which time the code stays paused on the play sound ( v) until done block.
Where can you find blocks for when something happens?
The when::hat events blocks can be found in the Events tab.
How do I make something happen when a key is pressed (up/down/left/right key)?
Use the when [up arrow v] key pressed block
How do I make something happen when the project goes to a different background/story location?
Use the when backdrop switches to [backdrop1 v] block
The <touching color [#0000FF]?> block isn't working?
Is is it checking with the correct color?
How can you select the correct color?
By clicking on the colored oval (input), then clicking the "eyedropper" symbol, you can then click anywhere on the stage to use that exact color. `TODO(Keith): Add screenshot`
How do I compare numbers or words?
Are there any blocks that use the math symbols for comparing numbers?
The <() > ()>, <() < ()>, and <() = ()> blocks work as expected in maths.
How can I check if a number is "less than or equal to" or "greater than or equal to"?
Is there a block that lets you check if something or something else is true?
Use the <<> or <>> block, with a <() > ()> block on the left, and a <() = ()> block on the right. This expresses the meaning of the ≥ expression in maths. For a ≤ expression, use a <() < ()> condition on the left side of the <<> or <>> block.
<<(...) > (50)> or <(...) = (50)>>
<<(...) < (50)> or <(...) = (50)>>
when green flag clicked go to x: (...) y: (...) when [a v] key pressed move (10) steps when [l v] key pressed move (10) stepsBreathing
when green flag clicked
forever
repeat until <(size) > (105)>
change size by (1)
end
repeat until <(size) < (95)>
change size by (-1)
end
end
Spiral
when green flag clicked forever move (100) steps turn cw (90) degrees end
when green flag clicked forever move (100) steps turn cw (85) degrees end
when green flag clicked forever move (100) steps turn cw (85) degrees move (30) steps turn ccw (15) degrees end
when green flag clicked
forever
move (100) steps
turn cw (85) degrees
move (30) steps
turn ccw (15) degrees
repeat (15)
move (5) steps
turn cw (7) degrees
end
end
when green flag clicked
forever
move (100) steps
turn cw (85) degrees
move (30) steps
turn ccw (15) degrees
repeat (15)
move (5) steps
turn cw (7) degrees
end
repeat (7)
move (10) steps
turn cw (4) degrees
end
end
Character Maker
when this sprite clicked next costumePainting
when green flag clicked forever go to (mouse-pointer v) end when [up arrow v] key pressed pen up when [down arrow v] key pressed pen downLoudness Meter
when green flag clicked go to [front v] layer forever set y to ((10) * (loudness)) endDress Up
when green flag clicked go to x: (...) y: (...) when this sprite clicked glide (...) secs to x: (...) y: (...)Storytime
when green flag clicked ask [Give a name] and wait set [name v] to (answer) ask [Give an animal] and wait set [animal v] to (answer) ask [Give a food] and wait set [food v] to (answer) say [Your story:] for (2) seconds say (join (name) (join [ fed the ] (join (animal) (join [ with ] (food)))))Rain
when green flag clicked forever wait (0.5) seconds create clone of [myself v] end when I start as a clone go to (random position v) set y to (250) glide (4) secs to x: (x position) y: (-250)Elevator (Lift)
when this sprite clicked broadcast [go to top v]
when this sprite clicked broadcast [go up v]
when this sprite clicked broadcast [open v]
when I receive [go to top v] go to x: (...) y: (...) when I receive [go up v] change y by (...) when I receive [open v] switch costume to (lift-open v)Clicker Game
when this sprite clicked change [click v] by (powerup)
when green flag clicked set [powerup v] to (1) when this sprite clicked change [click v] by (-25) set [powerup v] to (5)