x


Problem with 3D platform tutorial

I just started working on this tutorial. I am just on the first step and I have a compiler error.

Here is the error:

Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.

I dont know the first thing about how to fix this.

What are my solutions?

more ▼

asked Apr 01 '12 at 12:06 AM

MyNameIs... gravatar image

MyNameIs...
1 2 3 4

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

2 answers: sort voted first

I'm not familiar with the particular tutorial you're referencing, but the error you mention is caused when a particular script attempts to create two variables with the same name in the same scope.

You might be able to rename the variable.

more ▼

answered Apr 01 '12 at 01:09 AM

rutter gravatar image

rutter
5.2k 2 11

Its an error in the Lerpz 3rd person platformer tutorial. I have just opened it to attempt it and got the same message. As all compiler errors have to be fixed before getting started, it is a bit problematic.

Jul 19 '12 at 11:27 AM Lukas Barbarossa
(comments are locked)
10|3000 characters needed characters left

Ah, yeah. Shame those are just left in. Might be good blog fodder to write a few posts detailing all of the errors in those tutorial projects, with quick fixes.

more ▼

answered Aug 02 '12 at 12:47 AM

rutter gravatar image

rutter
5.2k 2 11

(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:

x5060
x157
x155
x20

asked: Apr 01 '12 at 12:06 AM

Seen: 612 times

Last Updated: Aug 02 '12 at 12:47 AM