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

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: MIA, Ask an Expert: zapper gun
From: "Jeff Knope" <jknope@xxxxxxxx>
Date: Sun, 5 Nov 2006 08:22:51 -0800

MIA, Ask an Expert: zapper gunHi prms,

I will guess what you are asking for is to have the cloned zapper stay near
the original zapper; not actually in the exact same place.  So they act as a
team.  Is that right?

If so, it can be done this way:

zapper1, make "here pos
zapper2, setpos list (first :here) - 20 (last :here) - 20

This should be placed in a "forever" procedure, so the location of zapper2 is
continually updated as zapper1 moves.

A more sophisticated version would use the heading of zapper1 to help decide
if the new xcor and ycor of zapper2 is a subtraction or an addition to the
xcor and ycor of :here.  In this way, they could configure themselves as a
team oriented toward the targets, so there are no "friendly fire" accidents.

I urge you give it a try, maybe starting with the simpler version.  Please
include your project when asking additional questions.

Good luck,
--Jeff


  ----- Original Message ----- 
  From: Ajoy, Daniel 
  To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
  Sent: Monday, November 13, 2006 1:49 PM
  Subject: [MWForum] MIA, Ask an Expert: zapper gun


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

  from: prms <piratetrips@xxxxxxxxxxx>
  date: Mon Nov 13 12:50:58 2006

  I am making a game in which a turtle fires a zapper gun and shoots
  other turtles to kill them.  I have a "base" zapper turtle that clones
  itself when you press a button, and I want the clone to go wherever
  the turtle with the zapper gun is, and clickon.  How should I do this?
  I think this will be like a setpos procedure, but don't know how to
  make it follow and set postion with the other turtle. 

  • Previous by thread: Re: MIA, Ask an Expert: zapper gun

  • 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