[Thread Prev] [Thread Next]
AT,
I teach the students to use buttons to turn the turtle through the maze.
Students find the buttons cumbersome. Most gamers prefer the keys. Then I
teach them to use the keys. I am not ready to give up on the keys yet.
I do not understand the
if key? [react]
Does this work for all keys or for specific keys?
I tend not to use the backpacks for beginning programmers because I find it
too time consuming to open all the backpacks when helping them debug.
Bridget Burke
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx [mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of LCSI
Sent: Friday, February 29, 2008 12:41 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Keys on second page
Hi,
Here are a few comments.
First big suggestion: leave behind the "readchar" approach. This was mandatory
in "pre mouse" era, and was extremely popular with LogoWriter and older
versions of MicroWorlds. May I suggest that you use the mouse and "clickable
turtles wearing "arrow shapes"" to drive the runner through the maze? You
would solve several issues that way.
To name just two: the issue you are having with stage 2, and the fact that
readchar does not work if you don' t click on the page first.
Besides that, the way the programming is done, the procdure with the readchars
is linked to the turtle on page 1. When you go on page2, and hit the arrow
keys, you are still controlling the turtle that's on page 1.
Solution (besides using clickable, as suggested above):
Put the procedure "drive" in the turtle's backpack
to drive
if key? [react]
fd 1
wait 1
end
Put your "color programming" in the backpack's Rules tab, in the OnColor field.
In the programming that brings you to the second page, be sure to run the
command "t1, clickoff" to turn this one off and perhaps "t2, clickon" to click
the other one on.
Take advantage of the new features of MW EX.
AT
Le 08-02-29 à 15:10, Burke, Bridget - CKJH a écrit :
>
>
> Please take a look at this program. The keys work great on page1 but
> do not work on page2. You can just grab the turtle put it on blue if
> you do not want to play the game. We can not figure out how to get the
> keys to work when you change pages.
> Any suggestions?
> <Maze.mwx>
Previous by thread:
Re: Keys on second page
Next by thread:
Re: Keys on second page
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|