So my game has heavily gravity effected bullets, and what I do for the enemies to make them compensate for their aim is place a position between the player and them, and then put it into the air by some amount of their total distance, so if all the gravities and whatnot are balanced, the bullets should arc towards the player no matter what the distance.
BUT I don't fully understand the math I am doing and I have run into a bug that only happens when the player goes on the right side of the enemies.
Desired effect on the left (somewhat)
<img src="http://puu.sh/2Mrap.png" border="0" />
and here is my math:
<img src="http://puu.sh/2Mri5.png" border="0" />
I have basically no idea what I am doing on the second line but it almost works...
Any advice? =)