Alice Community  

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

Reply
 
Thread Tools Display Modes
How to make a compass that points towards the NEAREST enemy?
Old
ash844677
Guest
 
Status:
Posts: n/a
Default How to make a compass that points towards the NEAREST enemy? - 11-27-2013, 11:50 PM

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
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 12-01-2013, 09: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
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 12-04-2013, 06: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:

http://alice.org/community/showthread.php?p=36778#post36778

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

Or..

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

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Reply

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