Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Need Help. Code Doesnt Work.

Need Help. Code Doesnt Work.

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Need Help. Code Doesnt Work. on Sat Feb 01, 2014 6:12 am

georgeziozas


Member [Lv. 3]
Member [Lv. 3]
hello... i have a cube in my project and i made this script to make him move forward... i fixed the "Axes" i applied the script to my player... all corect... but when i press play and i click w it doesnt move! ! why?

thats my code


Code:
#pragma strict

var moveSpeed : float;

function Start () {

}

function Update () {
if(Input.GetButton("Forward")) {
  transform.Translate(transform.forward * moveSpeed * Time.deltaTime);
  }
}

View user profile

2 Re: Need Help. Code Doesnt Work. on Sat Feb 01, 2014 12:39 pm

georgeziozas


Member [Lv. 3]
Member [Lv. 3]
PROBLEM SOLVED

View user profile

3 Re: Need Help. Code Doesnt Work. on Sat Feb 01, 2014 6:57 pm

NewDeveloper


Moderator
Moderator
May you please write what was the problem, just if anyone else experiences this same problem they would know what to do.

--New Developer

View user profile

4 Re: Need Help. Code Doesnt Work. on Sun Feb 02, 2014 6:41 am

georgeziozas


Member [Lv. 3]
Member [Lv. 3]
NewDeveloper wrote:May you please write what was the problem, just if anyone else experiences this same problem they would know what to do.

--New Developer

i didnt had colour to my terain so my player at reality was moving but i coudnt see it in the screen cause terain was black... i had puted a directional light at full dark so... that was the prob

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum