I make a simple game with colored balls falling from the top of the screen. When a red ball collides with another red ball, a green ball is created right in the middle of the segments connecting the two red balls centres and both red balls are destroyed.
Logic is not a problem, I'm just looking for a method to get red ball's (0) and Red ball's (1) instances coordinates in order to calculate the green ball's coordinates.
Green.X=abs(Red.X(0)-Red.X(1))/2
Green.Y=abs(Red.Y(0)-Red.Y(1))/2