Im trying to find out if "Object1" is 'to the left of' "Object2".
Normally i would just compare their x positions:
If Object1.X <= Object2.X Then
isOnLeft = True
But what about if my direction is arbitrary and camera rotates smoothly so you never really know what way is actually 'up'. Basically My entire layout shifts 180* and now X & Y are opposite...
Is there a formula or something I could use to account for the 'floating' position so that it's always checking position in relation to whats actually on the screen? ie.. even thought the camera is rotating, the player is always in the center, so things still *appear* to be left and right of him...
Basically im trying to get enemies to face me when coming at me... though if the camera has rotated upsidedown then they look away from me as they come at me...