|
MicroWorlds |
or Programming Colours
Colours can be programmed like turtles.
Select the painting tool
Right mouse click on the colour Red |
Add a bark to your dog (using announce)
Hatch a new turtle. In the instruction box type runbark. Go to the procedures page and type in the following procedure
to runbark
repeat 30[setsh "dog1 fd 5 wait 1 setsh "dog2 fd 5 wait
1]
wait 6
announce [Woof Woof]
end
now go back to the page and click on your turtle.
Bird flying towards you and then away
Hatch a new turtle
Give it the instruction fly
Write the procedure to fly shown below in the procedures page, go back to the main page and click on the turtle and it should fly towards you and then away.
To fly
setsize 5
make "no 5
repeat 60[setsh "bird1 fd 2 wait 1 setsh "bird2 fd 2 wait 1 make
"no :no + 2 setsize :no]
repeat 60[setsh "bird1 fd 2 wait 1 setsh "bird2 fd 2 wait 1 make
"no :no - 2 setsize :no]
end
Have this work checked, saving the project and then you can proceed to the Major Project for this level.