i need some AI for that game where u control something that leaves a trail behind it, and if you or the other player hits it, they die. so basically i need an AI that will try to avoid hitting certain colors while trying to make the player hit the pen thats following it. i understand this might be difficult or, dare i say it, impossible. thanks in advance
Offline
Oh, like Tron? I tried. Very hard to do this. Most likely using a sensor to detect the line.

Offline
im realy annoyed that i cant for the life of me remember what the games called. im a total fail at making AI if somone could tell me exactly which blocks to use i would love them
Offline
Don't worry. It's not impossible. In fact, it's not even really that hard.
For starters, you'll need to attach a sensor sprite to the AI sprite. (Search the projects and forums for sensor tutorials.)
Then you just set up your if then logic so that if the distance to the player is less than the distance to the color, got toward the player, but if the distance to the player is greater than the distance to the line, try to circle to the far side of the player. This would get you the basics. Obviously you could start to program more complex strategy if you want.
Offline