[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> MW game making



John St. Clair wrote:
> 
> I have a student working on making an adventure game who's gone beyond my
> knowledge of MicroWorlds.   He would like to have the person playing his
> game enter a code in a certain sequence in order to advance to the next
> stage of the adventure.  He's made some designs into turtle shapes and
> would like to have the player either click on the turtles in the correct
> order or drag the turtles into a grid on the screen in the correct order.
> How would MW detect the selection either of the turtle clicking or
> placement of the turtles?
> 

John,

There are a number of different ways to handle this depending on the
application and the desired look and result.

Two simple ways to get you started are:

First, have the user drag each turtle onto the grid, which is made up of
different colored squares.  When all the turtles are placed have the
user click a button to indicate this.  Check the colorunder each turtle
and proceed depending on the results.

Second, create a routine for each turtle that indicates it has been
clicked on. Program the turtles to call these routines when they are
clicked (To program a turtle right click the turtle to bring up the
program box). These routines should add the turtles name to a list. 
When the list has the number of entries in it equal to the combination
check to see it they are in the right order.

I have created a little project that implements these two ideas.  Check
out my web site. 

Regards 
-- 
Frank Caggiano
caggiano@atlantic.net
http://www.atlantic.net/~caggiano
---------------------------------------------------------------
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