wow, i guess im stuck

well im going through the tutorial on how to make an fps (newby stuff)
and i hit a road block :frowning:
ok i made the script for the rocket launcher

var projectile : Rigidbody;

var speed = 20;

function Update () {
	if (Input.GetButtonDown ("Fire1")) {
		var instantiatedProjectile : Rigidbody = Instantiate (projectile, transform.position, transform.rotation);
		
		instantiatedProjectile.velocity = transform.TransformDirection(Vector3 (0,0,speed));
		
		Physics.IgnoreCollision(instantiatedProjectile.collider, transform.root.collider);	
	}
}

and it gives me this:
“Script MissileLauncher has not finished compilation yet. Please wait until compilation of the script has finished and try again.”
no matter how long i wait
please help me :stuck_out_tongue:

Just in case : aren’t you working on a project residing on a disk image ?

(edit : sorry, you’re obviously not since you’re doing a tutorial)

ye im not on a disk image, ok i was able to copy paste the code in the tutorial (so i know its 100% accurate) now it gives me:
Can’t add script behaviour MissileLauncher. You need to fix all compile errors in all scripts first!
omg
heres a few pics, idk if it’ll help :frowning:

79181–3047–$unity003_450.pdf (293 KB)
79181–3048–$unity001_128.pdf (269 KB)

Did you address the script error that it shows in red at the bottom of the window?

i dont see how that can be the problem, since it wont let me assign any script (gives me the same error for them all) and since a copy pasted

Click the error message in the bottom of the window once. That’ll bring up the message window which will reveal if you have additional, related errors which might explain the ones you mention here.

The error message is in fact the problem. As it happens, that tutorial was made for Unity 1.x, and a change to the API in 2.0 has meant that part of the code no longer works. You will have to alter the offending script to make it compile properly, possibly by commenting parts of it out (add // to the beginning of troublesome lines).

The problem stems from the fact that the Texture2D class used to have a member named ‘frame’ which could be used to set the current animation frame if the texture was loaded from a movie. This functionality was removed in 2.0 and replaced with the new MovieTexture class (which is only available in Pro). There are various ways of working around this change, but for now, you’ll probably find that the simplest thing to do is to either omit the script altogether or comment parts of it out.

http://forum.unity3d.com/viewtopic.php?t=8268&postdays=0&postorder=asc&start=0

Is this the answer? See Erics post

I havent done the FPS TUtorial in 2.0

HTH
AC

The message says “You need to fix all compile errors in all scripts first”.

I can see from your screen that there are errors in other scripts. It tells you where. The message tells you to fix them before it will let you do what you want to do.

I don’t see how that isn’t the problem.

i guess it would explain how all the scripts are wrong, i didnt know it was done in unity 1.0
well oh well admin can lock now, unless anyone has something to add

Hi, I am new to all this stuff and am trying to make the same fps as The Finisher…

I am aware that the tutorial is for the older version, but everything seems to be working except for the weapon code. Well, I guess it goes on with the other scripts as well, but could you provide some sort of bypass, or possibly a new tutorial :?: :sweat_smile:

Welcome to the forums! If you look around a bit you’ll see that this has been asked already and you’ll see that our demo team has been soliciting opinions on this so we can update/repair/replace it, so it’s coming!