Hello Everyone,
I'm rather new to this whole game development thing, and I was wondering if you guys could help me in what will undoubtedly be the first of many questions. My problem is this: I'm making a top-down Legend of Zelda kind of game, and I need to distinguish the front and back of enemies and my character (for shield placement or detection or whatever). Now, I know how to change their animation so it's related to the angle of their movement, and I'm sure I could extrapolate on that so that if their at some angle, their state has changed (though I do wonder if there are other ways to do it so that they could, say, walk backwards), but I don't know how to determine that they are behind the main character or the main character is behind them.
One way I can think to do it would be with wire-frame actors that have the character actor as their parent. If a character is in a certain wire-frame while the other character faces a direction, then the state of the first character is seen as behind the second character, and they'll behave accordingly. My main problem there, besides the volumes of coding I'd likely have to do, is I'd have to create many, many wire-frame actors to accommodate all the characters. Is there an easier way? Could I somehow distinguish between one part of a sprite and another?
Any help for this problem would be greatly appreciated.
Cheers.