Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
In Need of A.I. code !!!!!
Old
CallowGenius
Guest
 
Status:
Posts: n/a
Default In Need of A.I. code !!!!! - 10-27-2009, 08:42 PM

what i have:
-a few enemies
-a protagonist character
-an object representing a piece of technology

what i need (thats where you come in):
-the enemies are constantly trying to obtain the tech
-however, if the enemies come within 2 meters of the protagonist, and the player presses space, the enemy moves backwards 3 meters.
-the enemy shakes off the daze, and continues to get the object
-when the enemies reach the tech, they carry it back to a hole.
-if the protagonist comes within 2 meters of them, and presses space, they scatter 3 meters away leaving the object.
-once the protagonist touches the tech, he wins. with the enemies stopping where they are, and the protagonist lifting the tech in his mighty glory.


i need help with the aliens obtaining and dropping the tech, and with the space press and stuff. please help.
   
Reply With Quote
 

Tags
a.i., artificial, if and else, intelligence, robot

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