So im pretty new with unity… actually I’m really new but i’ve been looking around and havn’t been able to fine this so I thought that I would try here! Could someone link me to a script or tutorial that allows a player to automatically run? So you dont have to use anything like W or the up key.
In general: find any script, find where it checks for input, modify it so it does whatever it does regardless. Usually you’ll just need to comment out an “if” statement or two.
Beyond that, it’s hard to give a specific answer to such a general question. Probably you should browse around the manual and the scripting reference for a while. Find tutorials that are helpful. Google around a bit and read up on topics that interest you.
Something like this might be enough to get you started:
function Update() {
var speedPerSecond : float = 5.0;
transform.Translate(Vector3.forward * Time.deltaTime * speedPerSecond);
}
Or, you could always attach and manipulate a rigidbody.