View Single Post
Function: distance to
Old
runcmd
Guest
 
Status:
Posts: n/a
Default Function: distance to - 11-25-2008, 04: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:
if
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, 208 views)
   
Reply With Quote