In the last project BlockBreaker I implemented a shooting system, when the player got the appropriate power up, and in that project I moved the projectiles using this code:
clone.transform.Translate (Vector3.up * speed *Time.deltaTime);
(I instantiated the object as clone). So I went and typed this code for this project and nothing happened and I’m a little lost as to why. Then i thought I would use the code that we have been using all along to move objects:
clone.transform.position += Vector3.left * speed * Time.deltaTime;
And that didn’t work either! To be honest that shocked me a little. So why is it that in this instance clone.rigidbody2D.velocity2D worked and the other two methods did not?
To anyone who can shed some light on this matter here is a big thankyou in advance.
Regards,
Vaughan.