Enemy firing missiles at random target/location

Hi all, I'm still tweaking my idea for a game and still learning more every day thanks to these forums.
I'd like to have enemies spawn and fire missiles at random actors that the player has to protect. How would I get an enemy to aim at different locations? I don't mind if they don't aim exactly for an actor, they can miss too. So I was thinking it could be a random location within a set area of the screen, as the spawning area for the protected actors is in a limited zone.
For example, kids throwing stones over a fence and breaking plants that keep growing back. Or any variation of that.
I shall go and research how to make the missile follow a trajectory of sorts, so it looks like its being thrown rather than dropped.
Cheers.
I'd like to have enemies spawn and fire missiles at random actors that the player has to protect. How would I get an enemy to aim at different locations? I don't mind if they don't aim exactly for an actor, they can miss too. So I was thinking it could be a random location within a set area of the screen, as the spawning area for the protected actors is in a limited zone.
For example, kids throwing stones over a fence and breaking plants that keep growing back. Or any variation of that.
I shall go and research how to make the missile follow a trajectory of sorts, so it looks like its being thrown rather than dropped.
Cheers.
Comments
and, I think you answered your own question! "So I was thinking it could be a random location within a set area of the screen… "
the cannon ball in the GS "Cannon Physics" follows a trajectory …
@};- MH