I'm trying to make a tower defense game, but I'm having trouble making the friendly weapons predict incoming enemy and make them shoot just in time.
Here is a video example of what I'm trying to program:
skip to 4:09 (check out the character throwing rocks)
https://youtu.be/zy0ZkpkFiCo?t=249
Another example:
https://www.dropbox.com/s/hn5grx188skcb ... g.png?dl=0