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

LOGO-L> Re:



At 10:54 PM -0500 11/19/97, MKPoles@aol.com wrote:
>... but the problem is that we want to make more pages
>that are different levels of our game.    When we start a new page, it won't
>let us use t1 again. It will say that there is more than one t1--which there
>is!!

You can use the same tutrle name on more than one page.  In fact, when you
create a new page it starts with a single turtle named t1.

Let's say you've created a scene with several turtles on page one.  If you
don't change their names they will be called t1, t2, t3, etc.  If you now
create a new page, the turtles will again be named t1, t2, t3, etc.

This isn't a problem for Logo.  A command directed to t1 will go to the t1
on the current page.

But what if the turtle you're talking to in *not* on the current page.
Let's say you have t1 and t2 on page1 and just a t1 on page2.  If you're on
page2 you can say T2, FD 100 and the turtle named t2 on page1 will move.
You won't see it move, but it will be in a new position when you get back
there.

The problem comes in when the turtle you're talking to in *not* on the
current page *and* there's more than one turtle of the same name.  For
example:

Page1 has t1 and t2
Page2 has t1 and t2
Page3 has t1 and t3

If you're on page1 or page2 you can give commands to either t1 or t2
without a problem.  From page1 or page2 you can also command t3 on page3.

But if you're on page3 and you give a command to t2, Logo is confused.
Which t2?  The one on page1 or the one on page2?

"There's more than one turtle named t2"

-Michael


--------------------------------------------------------
Michael Tempel                    tel: 212 579 8028
Logo Foundation                   fax: 212 579 8013
250 West 85th Street              michaelt@media.mit.edu
New York  NY 10024
http://el.www.media.mit.edu/logo-foundation/


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