[MWForum]Duplicating turtles for game levels

mwforum@lists.mathcats.com mwforum@lists.mathcats.com
Mon, 04 Aug 2003 23:50:16 -0400


I've several kids in my classes that want to design "levels" to their games.  Basically, this means that when their player has accomplished the goal on one page, they take him to a new one where the action continues with a similar challenge...just a bit more difficult/complex. 

My question has to do with the turtles...and particularly their names and the procedures which affect them.  MicroWorlds allows you to create multiple pages which contain the same turtle (names).  This is what we'd like, of course, because the core of the game logic will be used across pages (our "levels").  However, we've run into difficulty.  Understandably so, I suppose. For example, how is MicroWorlds to know which of the CAR turtles it should work on when there's one on page1 and page2?  My assumption would be that it would affect the one on the active page only.  But this doesn't appear to be correct. MW appears to be ignoring the turtles on the second page.

Is there something we're missing?  Is it even possible to have two turtles (with the same name) on separate pages utilizing the same code?  If not, could you share any tricks to get this concept working without duplicating code?  (On option would be to use variable input to the procedures and pass in the turtle name, but even this would require reworking what they've already designed and tested.) 

Thanks a million for any suggestions. 

Lisa Richter
Cosmic Thinkers in Laguna Beach, CA
Lisa@CosmicThinkers.com