Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How to make a compass that points towards the NEAREST enemy? (http://www.alice.org/community/showthread.php?t=10375)

ash844677 11-28-2013 12:50 AM

How to make a compass that points towards the NEAREST enemy?
 
The title says it all. I know how to make a regular compass and make it point at a pre defined object. but how to make it point towards the nearest enemy?

GameKid 12-01-2013 10:09 PM

Under functions you should find a "Spatial relations" tab, which contains functions that return depending on how close the selected object is to something, how far to the left, etc.

sfunk 12-04-2013 07:11 PM

1 Attachment(s)
This can be pretty glitchy if you want it to be a constantly updated function,

Here is a tutorial world for it.


All times are GMT -5. The time now is 01:34 AM.

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