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: MIA, Ask an Expert: arrow keys
From: "Alain Tougas" <alain@xxxxxxx>
Date: Mon, 28 Apr 2008 10:03:42 -0400

Hi,

These are the ASCII values for a Windows computer. Are you running
MicroWorlds on Windows or Mac? On a Mac, the ASCII values would be 30, 29,
31, 28. The two sets have nothing in common (if they had ONE common value, I
would guess that you are looking at a "platform" issue, but that's not the
case).

Note: I see that your "forever" instruction is quite long... You should
consider programming the color detection in backpacks or on the page
(right-click on the color) instead, in order to gain some speed.

AT

-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: Sunday, April 27, 2008 2:23 PM
To: askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: MIA, Ask an Expert: arrow keys


This is an automatic message sent from the web form at:
http://mia.openworldlearning.org/howdoi.htm

from: Anonymous <cwj484@xxxxxxx>
date: Sun Apr 27 12:22:42 2008
platform: PC
version: MicroWorlds Ex

I am working on a maze. The down botton on my computer but not the left,
right, or uo botton work.
to steer
t1,
make "key ascii readchar
if :key = 37 [seth 270]
if :key = 38 [seth 0]
if :key = 39 [seth 90]
if :key = 40 [seth 180]
end

to bump
t1,
forever [
if colorunder = 65 [setpos [-304 189] announce [You Lose!] stopall]
if colorunder = 105 [setpos [-304 189] announce [You Win!] stopall]
]
end


to go
setpos [-304 189]
seth 90
forever [fd 3 wait .5]
steer
bump
end

That is my proceder.
What am I doing wroung?







  • Previous by thread: MIA, Ask an Expert: arrow keys
  • Next by thread: How do I get more shapes

  • 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