Alice Community  

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

Reply
 
Thread Tools Display Modes
Same problem
Old
Delpenator
Guest
 
Status:
Posts: n/a
Default Same problem - 12-13-2009, 12:15 AM

I'm working on a similar problem with AI. To make a AI random walk, create infinite loop that waits any amount, turns random degrees, walks 5 meters etc. As to attack you, say if player is with 10 meters of enemy, enemy turn toward player then start shooting. I haven't tried that yet, since i'm still in the setup of my game, so i'm curious how well that would work.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-13-2009, 08:57 AM

Also if you want to make it more realistic, you could say (if (both (player is within 20 meters of enemy) and (player's distance in front of enemy is >= -2) then (enemy turn to face player) else (Do Nothing))

In this way you could make it a stealthy approach, and if you are behind the enemy, but more than 2 meters behind him, he will not notice you. Then if you are too close to behind him, he will turn around anyway and do whatever method you choose to initialize then (shoot, melee, etc.)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-14-2009, 05:50 PM

thanks guys but this isnt what i meant i was more like the tanks move in random directions like there lost or somthing..........BUT it has to be totally random
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-14-2009, 06:54 PM

come on some one help
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-14-2009, 08:05 PM

OK GUYS I REALLY DONT KNOW IF THIS IS MY STUPIDITY OR MY TRUST
BUT I HAVE ATTACHED MY VERSION OF A TANK PLEASE DONT SAY THAT ITS YOURS OR YOU MADE IT WHEN YOU DIDNT ohh sorry had caps on for more than needed anyway PLEASE respectfully give your honest oppinion my base for the tank is a diffeernt texture you'll see when my game is finished
Attached Files
File Type: a2w TANK BY ROCKSTAR 442.a2w (200.0 KB, 1 views)
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-14-2009, 08:15 PM

Ok, when I downloaded and looked at the world I couldn't even find the tank, I think it was somewhere way up in the air. Anyway, I have brought it down to the ground now and I am going to have a file here for a better view of the tank.

Did you actually create this tank, or did you get it from a website? You are saying you that created the tank and/or texture, but I am not sure if you actually did this.
Attached Files
File Type: a2w TankByROCKSTAR.a2w (225.6 KB, 3 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-14-2009, 08:33 PM

Quote:
Originally Posted by Dameria View Post
Ok, when I downloaded and looked at the world I couldn't even find the tank, I think it was somewhere way up in the air. Anyway, I have brought it down to the ground now and I am going to have a file here for a better view of the tank.

Did you actually create this tank, or did you get it from a website? You are saying you that created the tank and/or texture, but I am not sure if you actually did this.
ok i found that offending but what i did was i took the original tank pressed affect subparts and made copies of the whatever thing and just tilted them to make them look better than they were great now out goes my secret
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 12-15-2009, 08:03 AM

Good job


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-15-2009, 03:26 PM

Ok sorry, I'm not good at making objects, so I don't know how to do all that stuff. If you did make this though, it is very good, I'm impressed. Good job and sorry if I offended you.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
rockstar442
Guest
 
Status:
Posts: n/a
Default 12-15-2009, 04:43 PM

no problem man i just now need to know how i can make it so that the tank moves in a random directions like its lost or somthing
   
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.