I Count
and darn it, people like me
MicroWorlds can count! More importantly, you now can keep
score for any game you make. Make sure you know what each line does.
Hatch a turtle, create a textbox and try this procedure.
to main
cg
text1, ct
make "counter 0
forever [score]
end
to score
fd 1
if ycor = 0 [make
"counter :counter + 1 text1, ct print :counter]
end
TRY THIS
Create a project called Counter. Save all your work
as CounterA, CounterB, ect...
- Make
the counter, count by two.
- Make
the counter, decrease by 3 every time it crosses the ycor
30.
- Make
the counter increase when the turtle goes over red line and decrease when
it goes over blue lines.
- Make
the counter announce [You win] when it reaches 10.
- Make
the counter begin at 100 and subtract 1 every time the turtle crosses the xcor 45.
- Make
the words [MicroWorlds is Cool!] appear in the textbox when the counter
reaches 20.
- Hatch
a new turtle and have the counter add one point when “t1 and “t2 are
touching.