x


How do you make a Javascript AI code for a car?

Newbie here!

I have tried some on the car tutorial and they do not work! It says Error: TopSpeed is not a member of 'Car' Error: Throttle is not a member of 'Car' Error: Throttle is not a member of 'Car' Error: Throttle is not a member of 'Car'

Help!!!

more ▼

asked Aug 03 '10 at 07:44 PM

FusionFallman gravatar image

FusionFallman
11 3 3 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It means that you are trying to access a variable by the names of "TopSpeed", "Throttle" in your class Car that aren't there.

Cheers

==

more ▼

answered Aug 03 '10 at 07:52 PM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

It also means the variable doesn't exist.

Aug 03 '10 at 08:43 PM e.bonneville

yeah - what i meant but didn't state, apparently. lol

Aug 03 '10 at 09:42 PM equalsequals
(comments are locked)
10|3000 characters needed characters left
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:

x81

asked: Aug 03 '10 at 07:44 PM

Seen: 1187 times

Last Updated: Aug 03 '10 at 07:44 PM