Error from unity scripting tutorial... UnityEngine.Transform.position not a variable...
#1 Members - Reputation: 645
Posted 28 December 2012 - 11:54 AM
Moltar - "Do you even know how to use that?"
Space Ghost - “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer."
Dan - "Best Description of AI ever."
My Game(s), Warp Wars is in early development and can be found here: http://blog.WarpWars.Net.
#2 Members - Reputation: 645
Posted 28 December 2012 - 12:05 PM
I fixed the double to float issue if anyone notices that, but the same core error above is still plaguing me.
Moltar - "Do you even know how to use that?"
Space Ghost - “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer."
Dan - "Best Description of AI ever."
My Game(s), Warp Wars is in early development and can be found here: http://blog.WarpWars.Net.
#3 Members - Reputation: 129
Posted 28 December 2012 - 12:28 PM
transform.position.z += 1;
In fact, you don't even need to put +=1 instead just use the shorthand version ++:
transform.position.z ++;
Is the final code, these tutorials were made quite a while ago and some of the unity api has changed since then.






