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

Link to this comment:

Share to:

All Comments (534)

Sign In or Sign Up now to post a comment!
  • 5:13 lol

  • somehow in coding the worm i have spacebar to fire fireballs and lmb does nothing, any suggestions on how to solve this, i seem to jump whenever i press forward

  • PLZ HELP ME , I'M HAVIN PROBLEMS IN UNITY 3 :CC /watch?v=YeAWtVg3BiY pllzz help

  • i am RUBBER DUCKY and i am AWESOME !

  • @TornadoTwins do you know how to make it so that you can makke setain buttons do certain things like holding alt and pushing s makes the character look up and w make it look down

  • why was the variable created in the fourth slot, instead of using the empty first slot? Thanks.

  • I get the error message: "No appropriate version of 'UnityEngine.Object.Destroy' for the argument list '(System.Type, float)' was found."

    Can somebody please tell me what the problem is?

    var lifeTime = 1.0;

    function Awake ()

    { Destroy(GameObject, lifeTime);

    }

  • @MrFinnfemfel Destroy(gameObject,lifeTime);

    that is the right way...not 'G' but 'g'

  • @777giorgos Thank you very much. When I started writing game, the texteditor suggested GameObject. I thought it was the same so I chose it, but obviously not. Once again, thanks.

  • how do i change the distance of my fireball? it is too close when i shoot the fireball. and the height of the flame keeps going to the sky and it never ends. how do i change the height so it looks realistic?

  • in the last 2 days you guys have taut me alot thnx for all the tutorials and everything you have available to us newbs,

    i added a tree and added a collider, my fireball bounces off the tree, but after im so far back my fireball goes through the tree. any idea how to fix that?

  • hehe... its a ducky...

  • @kingofpochy and anyone else, I see a few suggestions for destroy on collision. I wanted the bullet to live if it didn't hit anything (e.g. fire into the sky, then die over time) or die on collision (e.g. hits player or wall). This script worked for me:

    var lifeTime = 2.0;

    var collision = false;

    function OnCollisionEnter()

    { collision = true;

    }

    function Update()

    { if (collision) { Destroy (gameObject); collision = false; } else { Destroy (gameObject, lifeTime); }

    }

  • @nickbtz great! but make the collision private

  • @supersushi269 Good call! Indeed i found this out later! Im still learning! Thanks for pointing that out! I hadn't actually picked up that the collisions weren't killing the bullet because im making an FPS, the bullet just fires in to the geometry straight in front of me, so you cant see it come out the other side!

  • ooouuuu.This is so fun.I like to create a game sometime :D.I like to.I try to make 1 game tomorrow :D.I like this programm :).

  • These gr8 guys r not from Sweden. They r Dutch.

  • y sweden sweden rocks

    

  • can u please post a list of all the commands of the unity scripting

  • thankx. u r really gr8

  • Rubber Ducky FTW

  • yeahh SWEDEN :D im from there:D

  • @levidread99 Samma här XD

  • thank you so much, you guys awesome

    

  • guys...these tutorials or not that good.

  • @TehRealTehWut or are they?

  • @Darktar666 Dam dam dam daaaaam*Hang up*

  • Rubber Duckies are awesome

  • @kingofpochy function OnCollisionEnter(){Destroy(gam­eObject);}

  • can someone please help me on unity my camera on the scene zoomed out of the map and the cordnates are not a number and I hae reinstalled unity multiple times but its still stuck outside the map if your not getting what im saying PM Me on youtube and I will make a video explaining it more please help

  • @screamz332 never mind I finally fixed it

  • @kingofpochy think im 13 and understand how

  • lol hes a lefty

  • @Oryxdesign40 me too ^^

  • @chrisdanko96 WTF im 12 and even i understand

  • You guys are twins and left-handed!!! you would have double burnt in hell 500 years ago!!!

  • @kingofpochy incase you still wonder on that one, you simply add a collision detection between the ball and all other objects and use a destroy function if collision returns true when hitting.

    Simplified: if (collision) {Destroy ball;}

  • C++ or javascript?

  • you guys are the best

  • Awesome series. Thanx alot.

  • what is them arrow type things in the scripts?

  • im a new game designer with no experience...need i say more? anyways im interested in where you origionally learned this, your knowledge of scripting and so on. dont take this the wrong way but i dont want to continually watch youtube videos to learn new tricks. *even though everyone does it*. and the rubber duckie IS awesome, but i did kinda laugh. lol, the one and only seth burk *even though google says theres several seth burks...*

  • your a realy good at doing tutorials good thing i subscribed

    

  • Please update the scripts and put them in description! I typed exactly what you typed and it doesn't recognise the destroy thing

  • rubber ducky is awesome!

  • My killmeovertime is NOT WORKING HELP

  • @chris8sam Use this instead:

    var life = 1.0;

    function Awake()

    { Destroy(gameObject, life);

    }

  • @Eanny thank you very much!!

  • Ok if u mak me a epic racing game ill pay u in models or ill luv u forever

  • @kingofpochy

    function Awake ()

    {Destroy (gameObject, 0.1);

    }

  • I only laughed when he told me not to laugh.

    GET OUT OF MY HEAD CHARLES!

  • I didn't. Cuz my mouth is hurt : /

  • Ow darn, i did laugh at 504..

  • Best tutorial series ever for Unity! It is ridiculously easy to understand even if you are a beginner!

  • yeah the script dont work i wrote everything exactly the same and still dont work any ideas?????????????????

  • @darkslayer080  dide you rite gameobject without a capitol like you shood

  • how'd he know i laffed at that part

  • @kingofpochy Sadface :(

  • @kingofpochy did you ever get an answer on that?

  • How you make a guy fight or running

  • 2:27

    Kill me

    Later...

  • Only JavaScript and C#? Well why should U say only, most can't work with 2 programming laguages. I hope they add in AS3, then I could get some real use out of it :).

  • I Like Rubber Duckies.

  • Comment removed

  • Could you make another tutorial series about JavaScript. I am just horrible with JavaScript.

  • @wherehat find bucky's tutorials..

  • rubber duckies!!!!!! :)

  • @kingofpochy Maybe.... umm...

    Function Awake ()

    { Destroy (gameObject, lifetime) //Or maybe Destroy (gameObject, Collision)

  • Why the hell do u have a rubber duckie XD!!!!!!!1

  • Comment removed

  • 5:08 lol "rubby ducky"

  • K what do I do with bullets?.. theres gonna be about a billion of those but it the targets is far away.. it will need time to travel.. so should i set the lifetime to..?

  • @PhenomenalHeadShot i dont know ant scripting but why not change it so the bullet disapers/change into something when it hits a pacific object

  • @MegaGadgetdude i dont know anything about scripting either, but i almost gurantee theres a way to make things delete on impact after causing their effect.

  • Why don't you need to define the variable lifeTime's value as seconds?

  • @kingofpochy

    Maybe only use the bottom part of the above code for that?

  • Rubber Duck....... FTW

  • Here is the script:

    var lifeTime = 1.0;

    function Awake ()

    { Destroy (gameObject, lifeTime);

    }

  • Thank you very much i didnt understand what vector 3 ment.

  • @paladintip Vector 3 basically means in scripting it says i need 3 values of you. and those values are X, Y, Z so i would be like this in vector language 1, 2, 3. 1 would be your X, 2 would be you Y , and 3 is your Z. It asked these 3 values because it needs to know where it is going to move the object and etc :0

  • thank you very much i didnt understand what vector 3 ment

  • Thrii Axis...

    I like your accent, really :D!

  • thumbs up if you noticed the title - "worminator" :DD

  • this script shoots the fireballs and delete them at the same time var projectile : Rigidbody;

    var speed = 20;

    function Update () {

    if ( Input.GetButton ("Fire1")) {

    clone = Instantiate(projectile, transform.position, transform.rotation);

    clone.velocity = transform.TransformDirection( Vector3 (0, 0, speed));

    Destroy (clone.gameObject, 4);

    }}

  • I take notes for every tutorials thank you for being the greatest person in the world. I love you!!

  • I took Algebra 2 last year and my teacher talked about 3d graphs. In math, the 3d graphs are kind of strange, because everything is moved around. Y is horizontal, Z is vertical, and X is where you put Z on here. Now that I've gotten used to that, this looks a little strange.

  • 5 people spit on rubber duckies. -:(

  • 5 people hate rubber duckies

    

  • UnityscriptDotcom seems amazing.

    I am reading the tutorials on that site right now.

  • Since Unity uses Javascript(though you can also use C# and something called "Boo") I think it's good to learn a little about Javascript(even though it is mainly used with web development).

    I already know a bit about Python and C++ so I understand the most here, but I still think I should learn a litte about Javascript too.

  • how do you actually know what to write in scripts?

  • @Dude5464673 you have to actually read your books on writing scripts

  • @206ernesto well where can i find these books

  • @Dude5464673

    those are an example, this other ones are for beginers;

    amazon(dot)com/s/ref=nb_sb_nos­s?url=search-alias%3Dstripbook­s&field-keywords=%22computer+s­cript+for+beginners&x=0&y=0

    and this for linux;

    amazon(dot)com/s/ref=nb_sb_nos­s?url=search-alias%3Dstripbook­s&field-keywords=%22computer+s­cript+for+linux&x=0&y=0

    and this for 3d scripting

    amazon(DOT)com/s/ref=nb_sb_nos­s?url=search-alias%3Dstripbook­s&field-keywords=3d+scripting+­for+beginners&x=0&y=0

  • tanks..i mean thanks..

  • dear sir,

    i m really / totally 100% new user to unity3d, n i m about to touch it. So can u tell me where can i get controls,scripting tutorials references...Thanks, i'll be really tankful to you n ur team.

  • unity3dDOTcom/support/document­ation/ScriptReference/indexDOT­html

    Replace the DOTs with .(punctuation)

    Just use the search function and it will come up with results.

  • @nirsh1000 yes me to plz im brand new to unity now iv been playing around with it but this tutorial doesn't really tell us how we know what to write in scripts

  • at 5:09 he says rubby ducky instead of rubber ducky

  • i have a problem it says uknown identifier "gameobject"

  • @ubotstudios7 lol?

  • so this is school...... and school is boring so lets add another axis Hehehehheheh

  • you are cool Thx!

  • Awesome I'd like to know if I'm the only one watching this while it's 2:45am. Thumbs up if you are.

  • ok i have a question iv downloaded unity 3d but it wont run the installer please help D*X

  • I found this while looking for basic information on scripting in c. thanks

  • 5 people don't think rubber duckies are awesome

    Thank You Tornado Twins, you are a HUGE help

  • Comment removed

  • I have a question a I Have done the same thing but the fireballs are not disapearing

  • Rubber duckys are cool guys :3

  • Please tell me you can learn this stuff in college or even highschool.

  • i don't like this part of the tutorial because he went from just simply making scripts to changing his buttons. i've been following and he hasn't shown how to jump or how to shoot with the mouse :/

  • Z=zed

    c=see

  • @Hobbitstomper Remind me to make fun of your accent when you post a blog tutorial in the future :)

    TornadoTwins, nice tut - I'm just a beginner at Unity3d, and I adore how simple the Destroy function is - It has a time paremeter in it? Joy! :D

    I played with several other multimedia packages, and I never knew how great the functions that Unity3D's Java scripts had.

  • @Majateka

    I was just kidding. Nothing to do with the accent, it's actually common way to pronounce it. I know their swedish, but calling the Z a C is very american rapper slang ;)

  • @Hobbitstomper Olol, well alright - I tend to jump the start in a few arguments here and there. It's just me being a little silly :P

  • hello. How'd you learn to program Java?

  • i wishd that when i was in school you would teach math with videogames then it wouldnt be a drag

  • how you shoot fireball with the mouse??

  • Hi

    When I finsih tapping the KillMeOverTime Script and add it to the fireball then I play the game and shoot the fireball the ball stay they dont get destroyed.

  • you guys, like the rubber duck, are awesome. Thanks for putting so much into these tutorials. And good luck with the future.

  • i am getting and error that says Insert a semicolon at the end but i did put a semicolon at the end PLEASE HELP ME!!

  • @EvilzElmoz

    close and re open!

  • Hi Having Trouble with the scripting. I require extra arguments ie. Object needs to be  UnityEngine.Object Am I doning something wrong Please help Im new to Scripting completely

  • does unity use C++ or what? I'm lost right now.

  • @thestudmuffin1234 they are using JavaScript, but you could also use Boo (Python based) or C#

  • you look awesome hahaha

  • how can you change the lifetime of the fireball till it hits an object

  • Sweden rouls. Sverige äger

  • from sweden? i'm from sweden! Woooooooooooo!!!

  • me too

  • Hello, i want to know how can i start scripting on unity 3d, i know 0% of scripting, so how can i learn it? (best software to practice/best websites to get started)

  • @DarkM1k4

    your going to want to learn javascript or c#. javascript is easier to me and you can just youtube javascript tutorials to learn the syntax of it and then the unity scripting reference to learn the rest.

    good luck.

  • im not a man i to am a 11 year old boy and i now practicly everything

  • unity dose not work for me.

  • Don't laugh rubber duckies are awesome! :) tnx -3

  • Someone cn help me cuz im not pro in scripting for unity....

    I am 11 years old boy...........

    U all are man so u cn help me.......:D

  • @kzoxxx112

    me too

  • jesuschrist!!! how do you now all this stuff!!! im in my 2nd year of programming and i dont get anything!!!! guys! how you did it? im trying to understand here but nothing keeps in my mind!!

  • THANK YOU GUYS SOO MUCH. U HAVE NO IDEA how your tutorials have saved my ass in class. I will be graduating on time and NOT failing VGD.

  • wow Unity is so user-friendly

  • i hate how math is so much fucking important now. im gettin g a D+ in math but I just made a sick ass game. Is that possible?

  • @superpentil Hoe much coding did you actually do?

  • @superpentil Obivously :)

  • hahaha that was sooo weird. how did u know i was gunna laugh?? i started laughin the second u pulled out the "rubber ducky"!!

  • I have a problem with the killMeOverTime script where I think it destroys the object immediatly and I put the script in as follows: var lifeTime = 1.0;

    function Awake ()

    { Destroy (gameObject);

    }

  • @Steelcage24

    var lifeTime = 1.0;

    fuction Awake ()

    { Destroy (gameObject, lifeTime);

    }

  • @Steelcage24 Dude, you're not even using your lifeTime variable in your function... Troubleshooting man. Check the parameters of your Destroy method.

  • @eMaxedon wow, I fell really stupid, hahaha. I can't believe I didn't catch that. well I was like 11 then, I'm 13 now and finishing up my own game.

  • which one of you TT is the other one ? :D

  • hehe with the part of the rubber ducky i didnt understand it so my worm bcame a rubber ducky and then i understood it :)

  • Het Tornado Twins!

    i was wondering (different subject from the video)

    im making an fps and i wanted a grab tool

    say grab a door and close it

    you couldnt help me in enyway could you

    it would be amazing if you did :)

  • Me: Rubber Duckies! Haha!

    Efron: Dont laugh. Rubber duckies are awesome!

    Me: Oh. Hail king duckie!

  • @DrawingDrewfly lol I actually laughed when he said that rubber duckie thing too! I cana ctually pay attention to this guy and never get bored!

  • dude i love ur hair :) (no homo) T__T

  • You save my life!

  • Heya TornadoTwins,

    Yesterday i got everything working (including this part) but when i opened it today my wurm no longer moves around, i can only make it turn :S

    Do you know how to fix this? Thanks anyways!

    Great tutorials!

  • awesome

  • i have a problem

    when i made the script and it all worked i could shoot it and everything, it wuold delet but when i made it shoot it made two things a bullet and a copy of the prefab file and it would not delete the prefab file

    any idea on how to fix this thanxs :)

  • I am looking for a scripter to starting an fps game. You don't have to be a proffesional, But maybe know something of scripting. But most of all i want a person who is really interested to make this game. Please send a message to my profile. If youre interested. Or send for more information.

  • I am looking for a scripter to starting an fps game. You don't have to be a proffesional, But maybe know something of scripting. But most of all i want a person who is really interested to make this game. Please send a message to my profile. If youre interested.

  • yay for ginger afro and epic rubber duckey!.

  • Your videos are awesome and your hot!

  • When I try to add the script it says that the script is not complete. What's wrong?

  • This is an amazing series and very simple to follow without taking away from learning the practical side of it. Thanks mate! really appreciate this :D

  • when i try and to the lifeTime it sais its not part of the unity game

  • Guys,

    if you have the problem where the error occurs where it says that "lifetime" isn't part of unity just type this script (or copy and paste) Now what this does is that it disappears on collision and after 5 seconds.

    var lifetime = 5.0;

    function Update ()

    {

    Destroy (gameObject, lifetime);

    }

    function OnCollisionEnter(hit : Collision)

    { Destroy(gameObject);

    }

  • @g7FCB thx

  • @g7FCB your script doesn't let it live for 5 seconds it lets it live for like a split second please help....

  • @g7FCB as fast as i press space they disappear =(

  • How come whenever i try to make these scripts? they won't work for me.

  • hey TT!!!!!! is it possible to make something to destroy the fireballs not with time but with collision? if yes that would be awesome!!! hope to get an answer soon! thx you guys rock!!!

  • Unity Chrased when i played the game after i dragged the killmeovertime js to fireball prefab!!! and i hav to start it over again