Quantcast
Channel: Answers by "fireomega"
Browsing all 25 articles
Browse latest View live

Answer by fireomega

Thank you works perfectly

View Article



Answer by fireomega

thanks that solved it

View Article

Answer by fireomega

A simple Destroy code and then just add the time the particle lasts for. e.g. say the time it lasts for is 5 seconds than you do: Destroy(gameObject, 5);

View Article

Answer by fireomega

Assuming I think you just want a simple shooting script when you click then you just do. var projectile : Rigidbody; var speed = 50; var fireRate = 0.11; private var lastShot = -10.0; function Update...

View Article

Answer by fireomega

one way is you could have two scripts such as the one for the gui which you attach to an empty gameObject. I'm assuming you know how to make a gui box already. Name the object e.g. Info Then make a...

View Article


Answer by fireomega

Assuming you have a script for your health you just make another variable var damage = 10; then you just make a OnCollisionEnter function in your script and do if(Collision.gameObject.tag == "enemy"){...

View Article

Answer by fireomega

make a variable for the counter and make it a static variable static var counter = 0; then in a gui function make something like a gui box which contains the counter then in a script attached to people...

View Article

Answer by fireomega

assuming you want it to be automatic just change the "GetButtonDown" to just "GetButton" or you could just play around with the fire rate

View Article


Answer by fireomega

Or if you want to stop them disappearing then just get rid of the Destroy line at the bottom

View Article


Answer by fireomega

You have to make it yourself, sorry

View Article

Answer by fireomega

You could try making an if statement like if(cam2.active == true){gui.active = true;} please ask if you want anymore help

View Article

Answer by fireomega

Instead of setting where the gui is with a set figure e.g. 500 you could just set it to something like 2/Screen.height

View Article

Answer by fireomega

ok lets say that your making a script that when something happens health goes down by 1 and you want to access it from another script. You write: transform.Find("Player").GetComponent("Health").health...

View Article


Answer by fireomega

Thank you works perfectly

View Article

Answer by fireomega

thanks that solved it

View Article


Answer by fireomega

A simple Destroy code and then just add the time the particle lasts for. e.g. say the time it lasts for is 5 seconds than you do: Destroy(gameObject, 5);

View Article

Answer by fireomega

Assuming I think you just want a simple shooting script when you click then you just do. var projectile : Rigidbody; var speed = 50; var fireRate = 0.11; private var lastShot = -10.0; function Update...

View Article


Answer by fireomega

one way is you could have two scripts such as the one for the gui which you attach to an empty gameObject. I'm assuming you know how to make a gui box already. Name the object e.g. Info Then make a...

View Article

Answer by fireomega

make a variable for the counter and make it a static variable static var counter = 0; then in a gui function make something like a gui box which contains the counter then in a script attached to people...

View Article

Answer by fireomega

assuming you want it to be automatic just change the "GetButtonDown" to just "GetButton" or you could just play around with the fire rate

View Article
Browsing all 25 articles
Browse latest View live




Latest Images