Alice Community Calculating distance

 Calculating distance
subzero
Guest

Status:
Posts: n/a
Calculating distance - 03-13-2009, 07:41 PM

Hello,

I am using alice 2.0 and i would like to know how to calculate the distance of alice to any object and make her say which object she is close to?
Attached Files
 K100.a2c (671.5 KB, 11 views)

Last edited by x2495iiii; 02-01-2012 at 06:30 PM.

 rich0e0rick Senior Member     Status: Offline Posts: 141 Join Date: Jan 2008 Location: Sturgeon Falls 03-14-2009, 07:11 PM in the 3rd tab of the world "object" you will find "distance to" methods im sure you can figure it out with those... think, something like, if this distance to that is less that that distance to the other that, then she says this... rick im back!!! FINNALY!!! got windows working on my mac again!!!
 DrJim Guest   Status: Posts: n/a 03-15-2009, 08:59 AM Also be sure to remember that distances are measured from object center to object center! The (perfectly correct) answer for something like a wall may not be what you expect - in that case use something like "distance in front of."

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge