Hi I am new to Unity and new to the site. I am an interactive media student at Bournemouth Uni and so far have built two very simple games. I am getting a problem every time I build the Game (Mac PC Standalone) a script of mine (enemyMove) fails to work. The script itself simply makes my enemies move towards the main character and works fine when I play it within Unity.
The script is as follows:
var mySpeed : float = 50;
function Update () {
var fwd : Vector3 = transform.TransformDirection(Vector3.forward)*mySpeed;
rigidbody.MovePosition(rigidbody.position + fwd);
}
Any ideas as to the answer of my question?
cheers joe Wheater