Alice Community  

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

Reply
 
Thread Tools Display Modes
how do i make enemys attack me
Old
slayerrobe7
Junior Member
 
Status: Offline
Posts: 4
Join Date: Aug 2011
Default how do i make enemys attack me - 08-14-2011, 03:19 AM

pleaze tell me hoe to make an AI system that makes enemies attack
   
Reply With Quote
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default 08-14-2011, 02:21 PM

Depends on what you want. I recommend learning as much as you can about Alice, and events, and methods, and functions. Than think about how you could do it using what you know, and BAM! AI.
   
Reply With Quote
Old
slayerrobe7
Junior Member
 
Status: Offline
Posts: 4
Join Date: Aug 2011
Default 08-14-2011, 02:29 PM

what i want is simple i want enemys that have guns try to kill you
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 08-15-2011, 07:49 AM

Quote:
Originally Posted by slayerrobe7 View Post
what i want is simple i want enemys that have guns try to kill you
Getting enemies to attack is indeed very simple, but can be rather complicated to program since you don't want your enemies attacking in the same way each time. Before I can help, I need to know if you know how to do the following...
  1. Create Methods
  2. Create Events
  3. Generate A Random Number (To Decide In What Way Enemies Will Attack)
  4. General Coding for Alice
   
Reply With Quote
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default 08-15-2011, 11:23 AM

As I said. You could do all this if you just had the knowlege to use Alice more. So learn more Alice.
   
Reply With Quote
Ai.
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default Ai. - 08-15-2011, 11:41 PM

It's vary hard. there are points of ai.
1.locate (you don't want them to know exactly where you are immediately.)
2.lock (you don't want them to forget that you were)
3.orient (turn towards you)
4.attack
5. avoidance (avoid cliffs etc.)
sometimes it's hard to do one thing then other.


:D
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 08-16-2011, 07:09 AM

Here. This is modeled on Perfect Dark. The enemies will walk around randomly until you get close enough, then they'll turn and shoot you.

WASD to move forward/backward strafe left/right

Left and Right to turn left and right

Up to shoot
Attached Files
File Type: a2w Scape.a2w (2.53 MB, 48 views)
   
Reply With Quote
Reply

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.