You can use the pick one of command. It's under pick or count in the condition editor. Alternatively, you can use a value of the enemy object to trigger AI states.
EXample-
Enemy is close to player - set enemy.value to 1
Enemy value = 1 And Player Running animation is playing - Shoot, set enemy.value to 2
This is how the AI was handled for most of my games, and it's never given me any problems.
Yeah, that's not the problem I'm having, sorry, I should have been more specific. I'm having a problem with the enemies direction. Okay, I have two enimies, right? Then I have 2 arrows, one that tells the enemy to face right, and the other left, when one enemy touches an arrow, the other one turns too, so how can I fix that?
Yeah ... what you need to do is give your actions focus.
Its because you create instances (objects) of the same active object. Then if you use a condition like always, every x or time is equal etc the focus is on all the instances, meaning the action will be applied to all the instances.
You can change focus a lot of ways. Collision is one way or making conditions with alterable values ...
That's really strange man, only the one that collides with the object should turn. If you want, you can take the problem area of code and upload it somewhere and I'll take a look at it, and see if we can't get that problem squashed.
Baaaaahhhh ... stupid double post ... had a nervous finger and hit "Reply" twice ... cannot edit any of the two posts either ...
As to the problem ... I asume you use a condition like: "badguy" collision with "left" -> Set direction of "badguy" to right ??? and vice versa for right.
I've done alot of work on platform Ai recently, particularly on a game i'm currently working on. I've pretty much got the whole object seperation thing down to a fine art, so I could offer my help if you need it.
MUGGUS
Come and annoy me more at
www.muggus69.tk STOUT ANGER!!!
Would you be willing to look at some code muggus? I know how hard it is to read other peoples code, especially mine (I don't use comments). But what ever the problem is, I'm sure it's just a stupid mistake. Unfortuanatly it's smarter than me.