Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (209)

Sign In or Sign Up now to post a comment!
  • Great

  • please help once when i get hit it will count as 2 hits then another time it will work perfectly then another time it will only  delete 1 ball and no more and the script is the same exact thing the only reason i could think of is that i have windows. please help anyone

  • Did someone see that city in the background... How do he make one of those

  • @alexpalex9981 you get city engine and download it.

  • Omg. I still have the double hit bug after an hour of trying to fix it, i gave up and just combined the hit switch statements with the lives. It works now. :D

  • y dont i respawn?

  • y does the turret miss me everytime????

  • 3:47 HITLWHAT?

  • Comment removed

  • @supergamerawesome a javascript spin off called Unityscript

  • i got a problem my worm only lose one of it´s balls :( what should i do?

  • IMPORTANT:

    If you're getting the double hit problem (2 hits instead of one), move the "HealthControl.HITS = HealthControl.HITS + 1;" line into the lateupdate gotHit section. It will have a slight delay as it's in a late update but it will hopefully work.

    I think this is because with slower computers the ball spends more frames inside the character so the trigger is triggered multiple times, adding 2 hits.

    Please rate up so people can see!!!

  • @TheOdeexs Thanks for the help!

  • The problem is fixed but there still appears to be a gap in the code. If you get hit by the cannon and then fall off the level you respawn with the amount of body parts you had after being hit.

  • @TheLifeEnigma Only an hour of troubleshooting and a few glitches later and I got it! I can now fall off the edge after getting hit and all my body parts respawn and the hit count resets to 0. Thanks for the awesome tuts! I feel like I've really learned something here!!

  • HELP HELP!

    I have a problem. When turret shoot me sometimes i get 1 HIT and sometimes i get 2 HITS. I check my scipts agai and again and the scripts are the same with TT scripts.I put HealthControl.HITS += 1; .

    Please I need an answer.

    P.S. TT = Tornado Twins :))

  • If you are still having the problems with getting hit twice the work around i found was that instead of just have HITS +1 change it to +1 % 2 and then it turns into one hit :)

  • Tornadotwins can you make online games EX: clubpenguin runescape AQWorlds

  • Hey im pretty sure my script is correct but my body parts dont disappear...

  • :D he called me awesome...

  • It takes away the first body part just fine on mine, but then the second one doesn't go away.

  • (EDIT) I just needed to change my Move Around script to MoveAround but I do have one other error thing where when I get hit it prints i have 5 lives when i get hit with the fireball and then 7 and so on?

  • I got an error saying Unknown identifier 'MoveAround'

  • i see an error in your script. if you stop rendering it would not turn off collision for the body part so you could still get hit on those parts when they are not there. is there a way to turn off collision along with rendering?

  • Hello,

    I fixed my problem back in part 2 were my worm fell through the ground. But now there is another problem. My lives will not reset and it randomly shows that I have 800 lives left and my hits doesn't reset either and now its stuck on 7. Help please. When I reset my error thing at the bottom and run the game, its fine but when I loose all my body parts and respawn, it suddenly goes up to 800 lives left.

  • Comment removed

  • .. my cannon isnt shooting or like aiming at me. lol wtf?

    please help if possible. i know its kinda late..

  • @Cryostrike Could it be that you forgot to add a 'Target' to the target variable in your script? Drag your target onto it to make it work. If not, then i don't know. :-)

  • @TechTimeTut i actually fixed it already. but thanks.. and um i do have another problem.. i try to put that animated worm on it and it doesnt move or falls thru the floor..

  • @Cryostrike What animated worm do you mean? The one made out of spheres? If so, add a sphere collider, or actually, just add a character controllet which has automaticly adds a collider. This fixes the problem when your worm falls trough the floor. About the moving problem, check your MoveAround script, did you add it to the worm? Make sure you don't have any typos in your script. - TTT

  • @TechTimeTut i meant. the worm with the mowhawk in this tutorial.. it doesnt stay on ground. but it doesnt matter im moving on now. thanks for your help

  • HHHEEELLLPPPP when i have an error that is hard to fix someone HELP:  Assets/ Scripts/HealthControl.js(48,17­): BCE0005: Unknown identifier: 'MoveAround'.

  • @MrGamemakermaster you need to define the movearound variable as static. Just like 6:43 (sorry for bad english x.x)

  • @MrGamemakermaster I had the same problem, do you have your MoveAround javascript spelt exactly that way?

  • can you do a free fps tut?

  • hey can you give a link with all the JAVASCRIPTS . pleaseeeee

  • Ok....im stuck and need help. I try to add the body parts to the health control script where he said to but, Unity gives me an error that says "NullReferenceException: Object reference not set to an instance of an object". What do i do to fix that?

  • lol spent the last half hour looking for the fix to the bug we didnt fix yet

  • I have a problem. I did everything in this tutorial, but: Body Parts don't fall off.

  • does anyone know a piece of script for when the worm falls onto the fallout with only one body Part.............. aka the head. how do you make him respawn with the other two body parts attached to him???

    PLZZZZZZZZZZZZZ HELP

  • @Marcus21889

    in the switch(hits) add a case 0 like below

    case 0: bodyPart1.renderer.enabled=tru­e; bodyPart2.renderer.enabled=tru­e;

    break;

    that should bring both bodyparts back when hits = 0

    hope this works for you :)

  • Comment removed

  • I've repaired the first problem

  • @100PercentStopMotion Please, write how you did. I have the same problem.

  • Hi

    I've got 2 major problem:

    1.My worm will spin once normaly after that it will spin 3 or 4 times in a row

    2.My worm cant lose a life from the turret

  • @benaliciousness I guess the problem of the last part of your comment is coz you deleted something and a part of your script is stil referring to it. You might wanna check to what your transform var is set

  • Comment removed

  • Comment removed

  • Help pls....

    i couldnt put the body parts in the health control script

    JJ

    pls help

  • Comment removed

  • @9kalabria You should note you can't drag thing for the hierarchy to the Project folder, so in order to drag bodyparts to the transform variable you need to select the GUI in the hierarchy and drag your ingame worm bodyparts to them.

  • @9kalabria you should make variables like 'var Bodypart1: Transform; then when the scipt is attached to the front part of the worm you have to drag the bodyparts to the scipt to specify the transform var

  • @benaliciousness

    Put: wormbody.renderer.enabled = fals­e;

    Do you notice the spaces that surround the equal sign?

    Just remember, that when you put the equal sign beside 'enabled' without a space, it thinks that 'enabled' is bonding with the equal sign, thus thinking that is says "enabled=" instead of just 'enabled.

    Moral of the story: ALWAYS put spaces before and after equal signs, or any other sign when scripting.

  • how do u still jump if u changed it to shoot?

  • @IEaTRuSHerZ If it happens then you press the spacebar this doesn't solve your problem. If it happens quit randomly while moving this might solve you problem.

    I had that problem because my bodyparts collided when moving, I put the collider off solved it

  • xD i have an error that doesn't let me continue it says, "null reference exception: Object reference not set to an instance of an object" this is the line i need to fix xD bullit.rigidbody.AddForce(tran­sform.forward*1800);

    is in my move around script , can anyone help me xD

  • i'm stuck

    what should i d

  • @1rpdragon1 you should specify your problem

  • @mcPeper4

    Actually, you can use integer instead of boolean. But you need to ensure that your variable takes only two values: 0 and 1 which are equal to false and true. The error appears when your variable takes different value. To ensure you will get only 0 and 1 use simple operator '%' (without comas). for example: var1 = var2%2  and var1 will take only 0 or 1 while var2 can be random. Both vars are int

  • YOU SHOULD MAKE IT WHERE THE BODY PARTS ROLL AWAY!!!????

    

  • Comment removed

  • i hate TTB

  • @kakostube2 LOL!! TT pwn!

  • IT STOP NOT WORK MY GAME VIRUUUSSSSSSS AND I HAVE MORE IMPORTAL THINGS I DO i am angry

  • Thanks for the great tutorials! I subscribed and liked. But can you please make a tutorial on how to change the character from the you know unity worm to your awesome PRO worm?

  • @mcPeper4

    What the error means is that: You are using 1 or 0 in replacement for true and false. Witch in teori should

    work. True and false is a boolean and a int is a hole number like: 0,1,2,3,4,5 and so on. A int dose not have a '

    number behind the comma.

    You should try replaceing the 1 and 0s with true and false.

    Hope that helped. :)

  • i just visited your website and got a trojan 6 virus!!!!!!!!!!!!!!!

  • i need help. i got this error.  UnassignedReferenceException: The variable BodyPart1 of 'healthcontrol' has not been assigned.

    You probably need to assign the BodyPart1 variable of the healthcontrol script in the inspector.

    healthcontrol.Update () (at Assets/Standard Assets/Scripts/General Scripts/healthcontrol.js:41)

  • good

    

  • Comment removed

  • Comment removed

  • My worm isn't moving anymore when i hit the arrow keys! help?

  • @fwantic Have you tried using WASD? In one of the previous he says the worm moves using the WASD keys.

    Hope this helps

  • my worm gets hit and it adds 2 to the hits and takes 2 from the lives...but i have -= 1 and += 1 for both variables? Its the only issue I'm having and its causing me to become unkillable :P anyone have a fix for this? i tried setting it to .5 rather than 1 hoping it might double the .5 and end up removing/adding 1 from each variable - didnt work too well

  • unity keeps tellin me for a ; buti already have one there wat do i do?

  • When my worm gets hit by the fireball it loses 2 parts? it also counts as two hits and sometimes it doesn't even re spawn?? Plz help

  • @Marcus21889 Same here :(

  • hey, love the series all working well... till now, before we added the bits to re-render the body parts, body part 1 went, then 2 then we re-spawned without the body parts, i did the re-render then it goes wearied, when hit once, both disappear, and it counts up 2 hits instead of 1, and then doesn't re-spawn, WHY!!! i am angry! D: if u have time, tips i would love!!! thank you :)

  • Comment removed

  • ok i have a problem

    when i get hit its just the head then get hit again nothing hapens or get hit once respawn.NEED HELP!!!

  • ur bitches u watch it

  • i added the var bodyparts into my script (ive called it lives but its the same to the letter as yours except where changes are needed due to name differences) but in the GUI it didn't appear please help (apart from that you have been amazing thanks)

  • ok my problem with the bodyparts disappearing that is when i get hit the first time thn both disappear thn i dont respawn its weird can u give me an addvice 

  • GREAT TUT

  • Comment removed

  • ok, apparently i have 2 problems

    1) this one is kinda know, but whenever i did the coding from the last video, it says the HITS part is incorect and is not a member of HealthControl

    2) whenever i did the re-coding for the Health control in this video, the part that said the body part 1/2 never showed up after i saved it and exited out, and i re-checked it 4 times to see if i got something wrong and still couldnt find anything.

    can you help me with these problems

  • why not create another game without doing a tutorial and then do gameplay of it!

  • Hi, i noticed a change in ur movearound.js. You've changed function OnControllerColliderHit(hit : ControllerColliderHit) to function OnTriggerEnter(hit:Collider)

    Whats e diff?

  • Hi =) have an error saying expected insert semicolon

    case 4:

    LIVES -= 1;

    HITS = 0;

    move around.dead = true; (its refering to this line, but there is a semicolon)???

    break;

    ("move around.dead" is supposed to look like this)

    Any help would be awesome thanks =)

  • @Pulsed101 ur move around shd be 1 word

  • hey, question for @TornadoTwins or anyone

    i have something saying

    Lives: 3 Hits: 0

    UnityEngine.Debug:Log(Object)

    what the heck does that mean, and i also had the lose the life after falling thing down, but it isnt working anymore, and also only when i get hit in a certain part of the character i made does it spin around?? and that also does not always work?? im very confused any suggestions. i can make a video of my character and scripts that i made for you if that helps to :)

  • i have something say

    Lives: 3 Hits: 0

    UnityEngine.Debug:Log(Object)

    what the heck does that mean, and i also had the lose the life after falling thing down, but it isnt working anymore, and also only when i get hit in a certain part of the character i made does it spin around?? and that also does not always work?? im very confused any suggestions. i can make a video of my character and scripts that i made for you if that helps to :)

  • Comment removed

  • It says MoveAround is an unknown identifier, I checked the spelling punctuation and case in every place! Why wouldn't it know the script it is using? And another thing, I don't think "Hit" is something that my script understands. It does nothing when it gets hit.

  • It says MoveAround is an unknown identifier, I checked the spelling punctuation and case in every place! Why wouldn't it know the script it is using? And another thing, I don't think "Hit" is something that my script understands.

  • It says MoveAround is an unknown identifier, I checked the spelling punctuation and case in every place! Why wouldn't it know the script it is using?

  • how do you publish or send a game please if you get this send me or make a vid please

  • I have a problem:

    When i try to add the actual worm parts to my script nothing happends (is usualy works but this time it just gives a loading icon and nothig more) help

  • @VorpDAHACKA same her like adding the body part 1 to the transform thing??

  • @VorpDAHACKA na dude ure tying to add it to the script u gotta click in the hierarchy on GUI_lives and add them there i had the same probelm for a bit but i figured it out haha

  • The script certainly isn't perfect but it works.. only problem is that the worm gets hit twice sometimes by just one projectile.. meaning that if you get hit twice in a row like that then you have 4 its and no way of dieing bu a projectile..Can you actually use the compare statements with cases? So that if the case is higher then 3...

  • no sorry =(

  • What language is in this video? UnityScript? It doesn't look half bad

  • Where'd the city come from?

  • where do you find the scrips / java stuff

  • for a reason when i get hit ma character just keep spining

  • @feefekfoarkg You probably have the character spin correctly on the first hit, but on the second hit it spins uncontrollably. if so, its because if you remember we had set an array to reset the values of out variables (decayTime, ect). To fix this simply go back into the script and change the default values of the variables with the values you set in the editor (i.e change var decreaseTime = 0.2;) Hope that helps.

  • I just land on the fallout:S its have the tag but I cant get it to work my script is //function OnControllerColliderHit (hit : ControllerColliderHit) : void function OnTriggerEnter( hit : Collider ) { if(hit.gameObject.tag == "fallout") { dead = true; //substract life here HealthControll.LIVES -= 1; } if(hit.gameObject.tag == "fiendeball" ) { gotHit = true; HealthControll.HITS +=1; Destroy(hit.gameObject); } }
  • when i have no trigger on my fallout i can stand on it and when i have a trigger on my fallout i go ride through it

  • and my bodyparts don't go away

  • Assets/Standard Assets/ Prefabs/HealthControl.js(47,25­): BCE0005: Unknown identifier: 'MoveAround'. what have i do wrong?

  • @sk88888888er88 I have the same problem ... did you find out how to fix it? I'd gladly take the advice :D

  • @sk88888888er88: You probably gave the "MoveAround" script a different name.. if not, make sure that your typing it correctly anyway..

  • @yousifali5 if(hit.gameObject.tag == "enemyProjectile") { if(!gotHit){ //your code here }

    With that - you can't get hit while dazed from another hit, and you don't get the 2 hits thing ;p

    

  • im having an issue with the loosing body parts and lives, sometimes it glitches and i loose 2 body parts and when i get hit over 3 times i wont loose a life or respawn, could you help with this issue?

  • cool !!

    

  • Im getting this error:

    Assets/HealthControl.js(36,29)­: BCE0022: Cannot convert 'int' to 'boolean'.

    Anny1 knows how to fix this?

  • Comment removed

  • For Most of U Getting The 2 Hits prob, My Solution is quite Flimsy but it works, use the switch case for 1,2 for 1st body render and then 3,4 for the 2nd and 5,6 for the Worm.

  • @misamurai

    thank you so much, ive been pulling my hair out over this problem. This fix works all the time but sometimes it takes 2 shots to take a body part off

  • Comment removed

  • I also have problem with getting hit two times, anyone know what to do?

  • Assets/Pro Standard Assets/Image Based/HealthControl.js(48,25): BCE0005: Unknown identifier: 'MoveAround . idk wut i did wrong

    

  • @matto8899 dude legit just had the same prob, but found out the solution, make sure the name of the script for moving around is exactly "MoveAround"

  • @matto8899 I have the exact same problem ... can you help me please? I see it's been 2 months since you posted this so I assume you figured it out. I'm still suck :(

  • it says that "MoveAround" is not a known identifier D:

  • i cant drag bodyparts on the health script

    can somebody help plz :(

  • I have some problems with my game

    1. Usually when turret hits me i loose both my body parts

    2. Usually when turret hits me once, it shows that i have got 2 hits

    3. Usually my worm isn`t respawning

    Those things(1-3) works very rarely. And then

    4. My worm keep spinning around much longer than in those vids( decay time, decrease time and tumble speed are all same as in vids.

    Does anyone else have same problems and can anyone help me?

  • One more thing. My fireballs goes through the terrain and turrets

  • can someone help me, insted of a worm I am using a robot

    I want sparks to fly out insted of loosing body parts but i dont know how to do it, I already have the prefab all i need is a script...... please.....

  • hhhhhiiiiiiiiiiiiiii:) :)

  • Ermm.anyone know a software tht can make games for x box or ?

  • AAAAAAAHHHHHHHHHHHH!!!!!!!!! it won't let me put body part 1 and 2 on the health script!!!!!!!!!!! sigh... 3 more hours and the rest of my sanity gone and i'll get it figured out

  • Hey Sorry for asking such a horrible question but I'm very new to this; For some reason when my turrets shoot at me they'er hitting 2 not 1 and so it takes off 2 body parts and then when i get hit again it jumps to 4 so i don't respawn becuase respawn is set for 3 and it just jumps over that I can't figure out why it keeps hitting 2 not 1 please help thanks

  • I have a problem. It might be my computer but i've come this far in your tutorial. I saved my game yesterday and began working on it today again. When i press the play button my worm lands on the ground and then Unity stops to work. I tried building and running it. When i ran this copy my worm fell through the ground and kept falling and falling even i had that respawn thingy. So did the bullets from that the turret kept shooting at me. Please help.

  • Hey I want to use a health bar along with the life bar.

    Do you know how to make that work properly?

    The reason being is that I don't want to use the tumble,

    and the body part removel.

    Any ideas.

  • Please make your scripts of this game downloadable???

  • Can you make your worm and turret scripts downloadable????

  • hello how do you make a gameover script

  • I ran into a problem:

    When my worm dies he loads back to a position slightly above the ground but he doesn't fall down to be able to crawl on the ground. Just hangs in midair. This did work before.

    Any ideas?

  • @ornba Problem solved! Had to change:

    transform.Find("Main Camera").transform.position = Vector3(0,4,-10);

    to

    GameObject.Find("Main Camera").transform.position = Vector3(0,4,-10);

  • I can't wait to learn about Publishing the game!

  • ei dude i got a problem....somethimes(most) the bullets go throu the props and stuff and doesnt take health why? and how to fix it?

  • to make materials go to right spot did you use that tool that open model up to one flat picture???(sry of my bad english)

  • hey jow can i make my worm jump ?

  • can u please help me!

    when i get hit it just bounces off now, i dont get 1 hit thing at the bottom, it stays at zero, and i dont lost bodyparts, i screwed up, can u help me?

  • Help me please.I get hit but i don't lose bodyPart1

    and bodyPart2.

  • Assets/Scripts/MoveAround.js(6­0,31): BCE0019: 'HITS' is not a member of 'HealthControl'.

    Can someone please show me or tell me the code for this problem please?

  • need the script!!!!! jezus plz post it or send it to me plz

    ik heb het echt nodig aub!

    i really need it!

  • dear TT,

    can you make a video on how to inport models from blender to unity

  • you mean this 1 var speed = 3.0; var rotateSpeed = 3.0; function Update () { var controller : CharacterController = GetComponent(CharacterControll­er); transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0); var forward = transform.TransformDirection(V­ector3.forward); var curSpeed = speed * Input.GetAxis ("Vertical"); controller.SimpleMove(forward * curSpeed); } @script RequireComponent(CharacterCont­roller)
  • Thanks for helping out bro!

    -TT

  • @Doogledude123 i also need the shooting part like in vid #5

  • @Doogledude123 ty man but i mean the shooting script i must messed it up somehow so idont c whats wrong (im on Windows if u would need to know

  • can you post the move around script any1 on vid part 5 plz post it as a comment plz

  • hey tornado was wondering if you could message me with the move around script but put somthing in it so my char floats 1y up thanks

  • How do you record this?!?!

  • Camtasia. :) i asked the same question a long time ago . and it works just fine.

  • Thanks :)

  • Camtasia for Mac, yeah. Super nice software. I also use Snapz Pro sometimes.

    -TT

  • cant wait next part :D

  • It's up!

    -TT

  • @TornadoTwins hey man i just wanna know the script with shooting i need

  • This is awesome so far, we need a script now that resets the HITS count to 0 when a life is lost in the case of Suicide.

    In other words, if I'm missing body parts and I run of a cliff, it respawns me with the missing body parts rather than resetting them and the hit count.

  • @Musicsmycalling Hey, I could help you with that and it is easy to do.

  • when r your fps tuts coming out????

  • please could u send me the heart pictures great tuts!!!

  • can you show us how to put fire and objects in our game that when we collect them they give us more health

  • Unity is almost most simplest way to do 3d game but hey TornadoTwins i have to say u are way better than me.... i have used to C++ and it is easy now wanted to try this one but ... well... my pc crashed by trojan and now it doesnt work, im using 2001 computer.