Alice Community 'Distance to' function???

 'Distance to' function???
 MoonKitsune Guest   Status: Posts: n/a 'Distance to' function??? - 10-04-2007, 04:51 PM I'm trying to make parameter, which is very frustrating to me. I need to make something move to an object and when making it, have to use the 'distance to' function. Thing is, I don't know where to find it! Any help on this?
 Ping Guest   Status: Posts: n/a 10-04-2007, 05:03 PM its under the Functions List when you select an object.
 Additonal questions on how to do a parameter...
 MoonKitsune Guest   Status: Posts: n/a Additonal questions on how to do a parameter... - 10-04-2007, 08:09 PM If you have not done so already, complete lab 2B-3 (Textbook exercise 6 in Chapter 2). Create a world-level method with a single parameter for the object being attracted (but not for the car). Use the distance to function and an expression to determine how far each object should move toward the magnet. This is my assignmanet. I have 'mana' a person, surronded by objects, and they move to the magnet in her hand. I tried making a Parameter, but nothing works the way I want it to. Say, 'compass' moved to 'magnet' 2.5 meters. While another object might take 4 meters. How would I make a parameter for this to work with the 'distance to' function? (I found it in the functions list, but I can't move it over to work in the way it should. ) ((If you have not done so already, complete lab 2B-3 (Textbook exercise 6 in Chapter 2). Create a world-level method with a single parameter for the object being attracted (but not for the car). Use the distance to function and an expression to determine how far each object should move toward the magnet.)) Last edited by MoonKitsune; 10-04-2007 at 09:15 PM. Reason: Adding image
 DickBaldwin Guest   Status: Posts: n/a 10-04-2007, 09:42 PM It looks to me like you may be able to benefit from studying the free online Alice tutorials at http://www.dickbaldwin.com/tocalice.htm

 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