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] [Thread Next]

To: "MicroWorlds Forum" <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: MIA, Ask an Expert: like brick breaking
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Wed, 19 Jan 2011 14:09:51 -0500

from: Aleron <deguzma6821a@xxxxxxxxxxxxxx>
date: Wed Jan 19 09:11:39 2011
platform: PC
version: MicroWorlds Ex

How do i make a turtle hit or smash into other turtles and make them
disappear?


Use the HT command to make them disappear.

if t1 is your main turtle and t2, t3 and t4 are the smashable turtles, try:

to startup
ask [t2 t3 t4] [detect.hit]
end

to detect.hit
when [touching? who "t1] [ht]
end

Daniel
OpenWorld Learning



  • Previous by thread: MIA, Ask an Expert: like brick breaking
  • Next by thread: Slider behavior in strange mode

  • 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