Alice Community  

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

Thread Tools Display Modes
How to make a compass that points towards the NEAREST enemy?
Posts: n/a
Default How to make a compass that points towards the NEAREST enemy? - 11-28-2013, 12:50 AM

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?
Reply With Quote
Senior Member
GameKid's Avatar
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 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.

[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
Reply With Quote
Senior Member
sfunk's Avatar
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 12-04-2013, 07:11 PM

This can be pretty glitchy if you want it to be a constantly updated function,

Here is a tutorial world for it.
Attached Files
File Type: a2w Compass_Concept.a2w (330.9 KB, 9 views)

If you are stuck on a project, check out the tutorials I made here at this link:

There are lots of tutorials on it so far, including some youtube videos, check it out


Go to my youtube channel to check out my alice 2.2 tutorials I have there..
Reply With Quote

compass, help needed, radar

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