i’m tryin t make a similar game like this and got all the missiles and character ready but dont know how to launch them
kinda similar to tower defense, but noob in coding…
anyone got a working example and willing to share it?
i need my characters to point and launch the missile
i already have the missile ready to go.
it would be nice to have a point system that could rotate or aim and make a missile in a csrtain time period
anybody know asset that could help
thanks
I would use a cylinder collider, with a rigidbody, that uses gravity. On btn press x, apply force to that object.
Look up those key words in reference.
and
Object.Instantiate
for the actual spawning of the missile
However,
if you are building for mobile, or are in general looking to save memory, I would create a pool of missiles. disabling and activating them as needed is better for the engine than instantiating endlessly.
Another tip, if you are using “countless” missiles, make a prefab, name it missile, then use that as your missile.