projectile instantiatiotion and variable help

Noob alert. I’m working on a top down 2D retro-ish game-

I have variables on my arrow projectiles such as damage, speed, angle, lifeTime… I would like to set these variables on the clone I create on instantiation. I know you can set the position, rotation, velocity and whatnot but I want to set the clones own unique stats on instantiation. I’m mainly worried about the xSpeed and Yspeed, or it’s direction rather, that it should travel on creation and continue traveling since that is going to vary from clone to clone. Being a simple 2D retro game I’m trying to stay away from the rigidbody physics so I can’t really use velocity…or can I? Regardless of the scenario, giving clones unique values would be a useful tool.

Is what I’m trying to do possible or am I going to have to mess with the whole clone naming process and refer to each by arrow"n" and such to set it’s stats?

Im also a new so this may be dangerous…

Have look at this, it helped me with a similar problem

Hey, thanks for the reply. In the link they saved the instantiated object as the “human” class in a variable. I was always under the assumption I had to save it as a “Transform” or “Rigidbody”, not sure why I never thought to save it as the arrow class -.-

hunterArrow arrowInstance = Instantiate (hunterArrowPrefab, transform.position, Quaternion.identity) as hunterArrow;

arrowInstance.blah = blah;

It’s always the simplest things, thanks! :slight_smile: