Growing+Flowers+-+Creative+Coding+with+Scratch
Growing+Flowers+-+Creative+Coding+with+Scratch
Growing Flowers
Getting Started
Challenge 1
Can you resize Butterfly 2 and position it to the left of the Stage?
Challenge 2
Can you duplicate the Flower five times, position them in a row across the Stage and
program them to reset size when the green flag is clicked?
Challenge 3
Can you make Butterfly 2 move across the Stage when spacebar is pressed, bouncing off
the edge?
Challenge 4
Can you make each Flower grow as Butterfly 2 flies past?
I can:
Top Tip
when clicked
If Butterfly 2 goes behind the
Flower sprites, use the go to front
set size to % layer block to position it in front.
go to front layer
go to x: y:
Top Tip
To resize and position a sprite:
To make sure the sprite rotates
accurately when bouncing off the
edge, use the set rotation style block.
if on edge, bounce
set rotation style left-right
Top Tip
and size
To ensure the Flower sprites
grow to a specific size:
< 200
The following algorithms are just one possible solution to each challenge.
Challenge 1 Challenge 2
when clicked
when clicked
set size to 50 %
go to x: -192 y: -84
point in direction 90
Challenge 3
move 20 steps
if on edge, bounce
Challenge 4
change size by 5