Just saw this old post which ive replied on the request - so im putting it here too.
Request thread
https://www.scirra.com/forum/viewtopic.php?f=183&t=128861
But also as an addition to the game im currently making, but im sure other people could use something similar to this. So comment if you like, or grap the CAPX to improve it.
Features:
Higher intial speed, that switches to a constant speed after a while.
Fuel gauge for each rocket, explodes when used up.
Rockets explodes on collision with solids
Rockets explodes when at a certain distant of its target - NOTICE: there is a event to chage it into "Upon impact"
When rockets cannot see their main target, they expand their vision and search for a secondary target. NOTICE: it wont do anything without a target.
.....You can hide from the rocket - yay!
Known bug(s)
For some reason, sometimes the rocket explodes when they are being launches. Seems like there is a loop somewhere when one rocket is exploding, new ones will also do it.
Fuel Gauge
Spends X amount of fuel each second.
Target Switching
When the rocket cannot see you, it expands it vision field and finds a secondary target, nearest itself.
CapX
Homing Rocket