Ok so i felt like i should know how to do this using the formula y-y1 = m(x-x1)
So I have a stationary object (refered to as sX and sY) and the moving object (mX, and mY) and two cordinates for the projectile (bulletX and bulletY) i know these are bad variable names but just using for the sake of this post
I am shooting the projectile from the stationary object to the moving object
float bulletX, bulletY;
float slope = (mY - sY) / (mX - sX);
bulletY = slope * (bulletX - sX) + sY;
The part I dont understand is what to assign to the value of bulletX since I cant use this code as the value of bulletX has not yet been assigned. Keep in mind im only 14 lol
Just to refrase I am trying to move an image across a line designated in the code above which moves the image from a stationary object to a moving object the target