This works for MSWLogo: TO Doodle :x IF :x = "8 [FD 15] IF :x = "2 [BK 15] IF :x = "4 [LT 20] IF :x = "6 [RT 20] END to ini keyboardon [Doodle char keyboardvalue] setfocus [MSWLogo SCREEN] end >> I know I have seen what I want somewhere but can't remember where, so I >> wonder if someone could tell me how to program so that the keys on the >> keyboard act as buttons. I am making computer games in MicroWorlds, and >> instead of placing a button on the screen "rt 90" for instance I would >> like to be able to use a key to do the same thing. I would appreciate >> any input. >Robyn >here's a simple one: > >TO Doodle >MAKE "x READCHAR >IF :x = "8 [FD 15] >IF :x = "2 [BK 15] >IF :x = "4 [LT 90] >IF :x = "6 [RT 90] >Doodle >END --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home