Alice Community  

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

Reply
 
Thread Tools Display Modes
Exceute an action when object is near something?
Old
Kuraii
Guest
 
Status:
Posts: n/a
Default Exceute an action when object is near something? - 01-13-2009, 02:59 PM

Example: When person1 is 2 meters from person1, play [music file]....

Is it posible to do this on A 2.0?

Thanks
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 01-13-2009, 04:07 PM

Certainly - just use the "distance to" function in an if or while statement. But remember distance is calculated from object center to object center - so you might want to use some other test.
   
Reply With Quote
Old
Kuraii
Guest
 
Status:
Posts: n/a
Default 01-14-2009, 03:23 PM

Quote:
Originally Posted by DrJim View Post
Certainly - just use the "distance to" function in an if or while statement. But remember distance is calculated from object center to object center - so you might want to use some other test.
It worked. Thank you DrJim
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.