Hey, I started on my new project today, a 2D tower defense game using the tutorial from unitycookie and tried running the game, just moving enemies into the range, but suddenly nothing happens. I wonder why that is. I attached the script used for the turret because I think it has to do with that. Can't really figure it out myself since I just started using Unity yesterday and am really new to javascript. I would really appreciate if someone could find the error, Crêak
Think the problem is Code (csharp): function CalculateAimError() { aimError = Random.Range(-errorAmount,errorAmount); } Try replacing the -errorAmount with -.001f and see what happens. If that fixes it then add new var errorAmonutMin: float = -.001;
Changed a lot regarding the objects, including a switch to 3D, now it seems to work but I run into some other issues: only 1 barrel of 2 fires while both are defined as Muzzle Positions and it does not rotate correctly.