actions based on position relative to player
Posted: Sun Nov 20, 2011 1:54 pm
Okay, I have two actors: Actor A and Actor B. There's an invisible rod going out to the right of actor A, that detects when it's colliding with actor B. If the rod is colliding with actor B, and you press the J key, then actor B will do something. However, there's a problem here. I want to clone actor B, and I want it to be that when you press J, only the clone closest to actor A will respond. How do I make actor B2 detect if actor B1 (or any clone of B for that matter), is between itself and actor A?