x


NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.Object[] args, System.String cacheKeyName, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetProperty (System.Object target, System.String name) UnityScript.Lang.UnityRuntimeServices.GetProperty (System.Object target, System.String name) CharackterKontrolle.Update () (at Assets/CharackterKontrolle.js:10)

Here is my script... what did i do wrong? Hier ist mein script... was habe ich falsch gemacht?

var gehen = 3.0; var laufen = 1.5; var DrehSpeed = 200.0;

function Update () {

var Rotation = Input.GetAxis("Horizontal")*DrehSpeed; transform.Rotate(0,Rotation*Time.delta.Time, 1);

var Speed = Input.GetAxis("Vertical")*gehen;

if(Input.GetKey("left shift")) {

Speed*=laufen;

}

var Kontrolle : CharacterController = GetComponent(CharacterController); var Vorwaerts = transform.TransformDirection(Vector3.forward); Kontrolle.SimpleMove(Vorwaerts*Speed);

, Ich }

This script is suppost to let my Player Character walk and turn...

Dieser script ist da um meinen Player Charackter gehen und drehen zu lassen...

Hello, It would be really amazing if somebody could tell me what I did wrong and how i could do it better...

Hallo, Es wäre wirklich Toll wenn mir jemand sagen könnte was ich falsch geamcht habe und wie ich das besser machen könnte...


I hope for a quick answer... Thank you!

Ich hoffe auf eine schnelle Antwort... Vielen Dank"

more ▼

asked Sep 18 '11 at 09:41 PM

TheEasterHazy gravatar image

TheEasterHazy
36 2 2 2

hmm, still doesnt workk, now I get this Error Message...

NullReferenceException: Object reference not set to an instance of an object Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.Object[] args, System.String cacheKeyName, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetProperty (System.Object target, System.String name) UnityScript.Lang.UnityRuntimeServices.GetProperty (System.Object target, System.String name) CharackterKontrolle.Update () (at Assets/CharackterKontrolle.js:10)

The same one isnt it? well my character Controller now is with my gameobject... ; / hmmm

Sep 19 '11 at 05:04 AM TheEasterHazy

Hey, well I has my gameobject selected when I made a new Character Controller... isnt that the only thing I need to do?. If not please tell me how I can do that...

Sorry Im still "new" to Unity...

Thank You!

Sep 19 '11 at 05:04 AM TheEasterHazy

Well I was on my gameobject wehen I made a character Controller... isnt that the only thing I need to do, if not please tell me how I do that...

Sorry Im still "new" to unity ;D

Thank you

Sep 19 '11 at 05:04 AM TheEasterHazy

Edit your question or post comments. Don't respond to answers with new answers that aren't answers.

Jul 15 '13 at 05:26 PM Kiloblargh

Please, someone close this question! lol

Jul 15 '13 at 07:45 PM clunk47
(comments are locked)
10|3000 characters needed characters left

2 answers: sort oldest
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4369
x2966
x613
x279

asked: Sep 18 '11 at 09:41 PM

Seen: 4743 times

Last Updated: Jul 15 '13 at 07:45 PM