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: Shape awareness
From: "Igor Flikshteyn" <hazelbluebuilder@xxxxxxx>
Date: Fri, 20 May 2011 11:36:52 -0400

If square is 1" by 1" what position does it show, center of the square or
the location of the perimeter?

-----Original Message-----
From: mwforum-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Daniel
Ajoy
Sent: Friday, May 20, 2011 11:03 AM
To: MicroWorlds Forum
Subject: Re: MIA, Ask an Expert: Shape awareness

> from: Igor Flikshteyn <hazelbluebuilder@xxxxxxx>
> date: Fri May 20 05:13:16 2011
> platform: PC
> version: MicroWorlds 2.03
>
> If two shapes colide on the screen, are they aware of each other.  How can
I know  that one shape collided with another and at what point.  For
example, if the turtle hits square, how can I know the exact position of the
collision on the outside perimeter of the square?

If by "shapes" you mean: pictures with which you dress the turtle using the

setsh

command. Then yes.

You can detect collisions with:

if touching "t1 "t2 [...]

for example:

if touching "t1 "t2 [show ask "t1 [pos]]

which shows the position of t1 at the time of collision with t2.

Daniel
OpenWorld Learning






  • Previous by thread: Re: MIA, Ask an Expert: Shape awareness
  • Next by thread: Re: MIA, Ask an Expert: Shape awareness

  • 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