 Prodigal Sock
Ghosthande
    

|
10/27/2013 | 1 |
Hmm... you could check to see what their POSE is if they aren't animated, or set a variable and check that. Like, if I make a critter or something that moves I might use ov00 to store which direction it's going, with 0 for left and 1 for right. Then I could just do something like this:
*grab direction and position of the other agent
esee X X XXXX
doif targ ne null and targ ne ownr
setv mv01 ov00
setv mv02 posx
endi
next
doif ov00 eq 1 and ov01 eq 0 and posx lt ov02
*I am facing right, it is facing left, and it is to my right
elif ov00 eq 0 and ov01 eq 1 and posx gt ov02
*I am facing left, it is facing right, and it is to my left
endi
That's the simplest way I can think of, at least. 
 |