This should return you the angle between two objects. Be sure to place all the variables right though or it wont work. Hope it helps.
bounce_angle = ATan2(goodguy_y - badguy_y, goodguy_x - badguy_x)