test (the red dot is predicted position, a sprite which is also controlled by you will try to shoot towards the predicted position made by the algorithm. Concept: get the distance the scratch cat is from (0,0), and then calculate the time it takes for your bullet to travel to the current position, multiply the time with the target's speed and keep its direction to get the predicted position (performed by an extra sprite), and aim at the extra sprite to predict.
my test project it isn't accurate since the to aim at the predicted position, it would be a curve, and the curve's end and the predicted position will have some difference, which means the bullet may not travel to the predicted position on time (it is an estimation).