- Home /
Question by
starnumstudios · Jun 27, 2018 at 06:32 PM ·
instantiatetransformprefabdestroytranslate
How do I duplicate an object to work with a shootemup
I need to be able press the z key and instantiate an object and have that object go to the position of another gameobject, and translate itself at a constant rate along the z axis, and then have it destroy itself. I am fairly new to Unity so I don't know all the ways to use it. If you could give some example code it would be great.
Comment
Your answer
Follow this Question
Related Questions
instantiate,destroy,gain speed in time 2 Answers
Can't move instantiated prefab 2 Answers
Can't remove instantiated prefab 0 Answers
Destroying & Then Spawning Quickly 1 Answer