Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Keys on second page
From: LCSI <alain@xxxxxxx>
Date: Fri, 29 Feb 2008 15:41:04 -0500

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: 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.


    © copyright 2001 - 2008