Something i made in request of another post, or a attempt there of.
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.
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!
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.
Spends X amount of fuel each second.
When the rocket cannot see you, it expands it vision field and finds a secondary target, nearest itself.
Develop games in your browser. Powerful, performant & highly capable.
I found out that if you remove all Player2 from the game and hide the Player behind a wall the rockets will explode when they are being launches.
Hint: If DistanceToTarget<= 50 > Explosion
Thank you for the hint, i Will have a look at it when i get home