Hello, back again.
I got the system working properly with the targeting, however, I then thought about having the enemy able to target the weapons on the ship to disable them.
This caused an issue in the sense that the turrets do not actually have their own speed or moving angle, as they are pinned, or simply always set to a certain position of a moving object, which is then moving around on its own. I considered having a variable on the item which reads off of the moving sprites speed/moving angle, and then feeding that into the turrets. However, if the sprite is rotating, the turret speed is increased even more.Please click here to see an example...
You can move the blue targets around using the arrow keys, and you should see that they are always being hit... however, if you move them right off screen, the pink target is very rarely hit.
Is there a way to improve this using @sqiddsters method, as it only uses one variable (at the moment) and only a couple of lines.
Would be greatly appreciated.