what does this mean? “function not valid macro” thats an error im getting.
heres the code
Function update () {
if (input.GetButton("Forward")){
transform.Translate(transform.forward * moveSpeed * Time.deltaTime);
}
}
what does this mean? “function not valid macro” thats an error im getting.
heres the code
Function update () {
if (input.GetButton("Forward")){
transform.Translate(transform.forward * moveSpeed * Time.deltaTime);
}
}
function Update () {
if (Input.GetButton(“Forward”)){
transform.Translate(transform.forward * moveSpeed * Time.deltaTime);
}
}
Change ‘Function’ to ‘function’, ‘update’ to ‘Update’ and ‘input’ to ‘Input’.
Remember that nearly every word in programming is case sensitive, therefore you have to be careful about getting your upper- and lower cases right.