Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Function: distance to
Posts: n/a
Default Function: distance to - 11-25-2008, 03:33 PM

Good day,
I'm currently making a project and I'm looking to make the car, which will be commanded by the arrow keys, stop when it gets to a certain distance from an object, in this case, a building.

I think the most viable way to do this is to use an IF statement:
car distance to building < 1
stop car

But when trying to manipulate the car's functions I see myself troubled because I can't drag the items to a method. Also, I don't understand the IF statements under Alice.

Any orientation on how to use these functions under IF statements will be very appreciated.

Thank you.
Attached Images
File Type: jpg distance.jpg (89.2 KB, 213 views)
Reply With Quote

distance, function

Thread Tools
Display Modes

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 Jump

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.