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
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
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.
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!!
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; .
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 :)
(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 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?
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.
@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'.
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?
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???
@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
@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
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.
@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(transform.forward*1800);
is in my move around script , can anyone help me xD
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
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?
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
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 :)
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
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.
Hi, i noticed a change in ur movearound.js. You've changed function OnControllerColliderHit(hit : ControllerColliderHit) to function OnTriggerEnter(hit:Collider)
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 :)
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 :)
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.
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 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...
@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); } }
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?
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.
@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 :(
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.....
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.
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.
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.
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?
you mean this 1 var speed = 3.0; var rotateSpeed = 3.0; function Update () { var controller : CharacterController = GetComponent(CharacterController); transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0); var forward = transform.TransformDirection(Vector3.forward); var curSpeed = speed * Input.GetAxis ("Vertical"); controller.SimpleMove(forward * curSpeed); } @script RequireComponent(CharacterController)
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.
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.
Great
venim59 2 days ago
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
colenemeth 1 month ago
Did someone see that city in the background... How do he make one of those
alexpalex9981 1 month ago
@alexpalex9981 you get city engine and download it.
colenemeth 1 month ago
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
Nanoxenium 1 month ago
y dont i respawn?
NightingaleLTD 1 month ago
y does the turret miss me everytime????
NightingaleLTD 1 month ago
3:47 HITLWHAT?
pallzoltan 1 month ago
Comment removed
MacintoshBourne 1 month ago
@supergamerawesome a javascript spin off called Unityscript
superpentil 2 months ago
i got a problem my worm only lose one of it´s balls :( what should i do?
levidread99 2 months ago
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 4 months ago 11
@TheOdeexs Thanks for the help!
MacintoshBourne 1 month ago
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 4 months ago
@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!!
TheLifeEnigma 4 months ago
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 :))
TheVicboss111 4 months ago
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 :)
speedierone 5 months ago
Tornadotwins can you make online games EX: clubpenguin runescape AQWorlds
coolmohdrocks 6 months ago
Hey im pretty sure my script is correct but my body parts dont disappear...
Cannedbread17 7 months ago
:D he called me awesome...
Cannedbread17 7 months ago
It takes away the first body part just fine on mine, but then the second one doesn't go away.
ExtremeFaithInJesus 8 months ago
(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?
Dipstickest 8 months ago
I got an error saying Unknown identifier 'MoveAround'
Dipstickest 8 months ago
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?
TheCoolGuys55 8 months ago
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.
TheSUPERCOMPUTERGUY 9 months ago
Comment removed
TheSUPERCOMPUTERGUY 9 months ago
.. my cannon isnt shooting or like aiming at me. lol wtf?
please help if possible. i know its kinda late..
Cryostrike 9 months ago
@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 9 months ago
@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 8 months ago
@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 8 months ago
@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
Cryostrike 8 months ago
HHHEEELLLPPPP when i have an error that is hard to fix someone HELP: Assets/ Scripts/HealthControl.js(48,17): BCE0005: Unknown identifier: 'MoveAround'.
MrGamemakermaster 9 months ago
@MrGamemakermaster you need to define the movearound variable as static. Just like 6:43 (sorry for bad english x.x)
MasterVampify 9 months ago
@MrGamemakermaster I had the same problem, do you have your MoveAround javascript spelt exactly that way?
cornsockgabz 9 months ago
can you do a free fps tut?
stronger165 10 months ago
hey can you give a link with all the JAVASCRIPTS . pleaseeeee
ctazyfrick 10 months ago
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?
WTF2FTW2CHEEZ 10 months ago
lol spent the last half hour looking for the fix to the bug we didnt fix yet
JcMadmusic 10 months ago 3
I have a problem. I did everything in this tutorial, but: Body Parts don't fall off.
fgycv 11 months ago
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 11 months ago
@Marcus21889
in the switch(hits) add a case 0 like below
case 0: bodyPart1.renderer.enabled=true; bodyPart2.renderer.enabled=true;
break;
that should bring both bodyparts back when hits = 0
hope this works for you :)
willman2k8 10 months ago
Comment removed
basketballdude138 11 months ago
I've repaired the first problem
100PercentStopMotion 11 months ago
@100PercentStopMotion Please, write how you did. I have the same problem.
Conqwer 11 months ago
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
100PercentStopMotion 11 months ago
@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
Maaarteh 11 months ago
Comment removed
80rocking 11 months ago
Comment removed
80rocking 11 months ago
Help pls....
i couldnt put the body parts in the health control script
JJ
pls help
9kalabria 1 year ago
Comment removed
Maaarteh 11 months ago
@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.
Maaarteh 11 months ago
@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
Maaarteh 11 months ago
@benaliciousness
Put: wormbody.renderer.enabled = false;
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.
glitchmaster439 1 year ago
how do u still jump if u changed it to shoot?
IEaTRuSHerZ 1 year ago
@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
Maaarteh 11 months ago
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(transform.forward*1800);
is in my move around script , can anyone help me xD
dellsaber1991 1 year ago
i'm stuck
what should i d
1rpdragon1 1 year ago
@1rpdragon1 you should specify your problem
Maaarteh 11 months ago
@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
CelsiusWasteman 1 year ago
YOU SHOULD MAKE IT WHERE THE BODY PARTS ROLL AWAY!!!????
mp5sf14 1 year ago
Comment removed
Loncer90 1 year ago
i hate TTB
kakostube2 1 year ago
@kakostube2 LOL!! TT pwn!
dellowuk 1 year ago
IT STOP NOT WORK MY GAME VIRUUUSSSSSSS AND I HAVE MORE IMPORTAL THINGS I DO i am angry
kakostube2 1 year ago
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?
Mr99Padda 1 year ago 2
@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. :)
mepain1 1 year ago
i just visited your website and got a trojan 6 virus!!!!!!!!!!!!!!!
BumheadProductions 1 year ago
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)
TheNarutofreak313 1 year ago
good
MrBanifaciy 1 year ago
Comment removed
Danschge97 1 year ago
Comment removed
Danschge97 1 year ago
My worm isn't moving anymore when i hit the arrow keys! help?
fwantic 1 year ago
@fwantic Have you tried using WASD? In one of the previous he says the worm moves using the WASD keys.
Hope this helps
eterito 1 year ago
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
Mudkippzs 1 year ago 2
unity keeps tellin me for a ; buti already have one there wat do i do?
IEaTRuSHerZ 1 year ago
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 1 year ago
@Marcus21889 Same here :(
pinkistoughjj 1 year ago
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 :)
oinkoinkflapflap2010 1 year ago
Comment removed
Marcus21889 1 year ago
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!!!
Frankiejv105 1 year ago
ur bitches u watch it
shadowstripexx 1 year ago
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)
Primevalman 1 year ago
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
darkheart559 1 year ago
GREAT TUT
CallOfDutyM 1 year ago
Comment removed
Milan0ka 1 year ago
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
lunarlockdown64 1 year ago
why not create another game without doing a tutorial and then do gameplay of it!
pericarale 1 year ago
Hi, i noticed a change in ur movearound.js. You've changed function OnControllerColliderHit(hit : ControllerColliderHit) to function OnTriggerEnter(hit:Collider)
Whats e diff?
eighteen4eva 1 year ago
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 1 year ago
@Pulsed101 ur move around shd be 1 word
eighteen4eva 1 year ago
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 :)
Crazycutemouse123 1 year ago
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 :)
Crazycutemouse123 1 year ago
Comment removed
Crazycutemouse123 1 year ago
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.
flatbill2 1 year ago
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.
flatbill2 1 year ago
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?
flatbill2 1 year ago
how do you publish or send a game please if you get this send me or make a vid please
50red510 1 year ago
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 1 year ago
@VorpDAHACKA same her like adding the body part 1 to the transform thing??
nightfoxx26 1 year ago
@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
GuRkiNaToR1 1 year ago
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...
takashy87 1 year ago
no sorry =(
sk88888888er88 1 year ago
What language is in this video? UnityScript? It doesn't look half bad
gsus7125 1 year ago
Where'd the city come from?
djkorova 1 year ago
where do you find the scrips / java stuff
SteelersFan252 1 year ago
for a reason when i get hit ma character just keep spining
feefekfoarkg 1 year ago
@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.
alex0xander 1 year ago
txzzo 1 year ago
This has been flagged as spam show
when i have no trigger on my fallout i can stand on it and when i don't have a trigger on my fallout i go ride through it
sk88888888er88 1 year ago
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
sk88888888er88 1 year ago
and my bodyparts don't go away
sk88888888er88 1 year ago
Assets/Standard Assets/ Prefabs/HealthControl.js(47,25): BCE0005: Unknown identifier: 'MoveAround'. what have i do wrong?
sk88888888er88 1 year ago
@sk88888888er88 I have the same problem ... did you find out how to fix it? I'd gladly take the advice :D
ohmyfsm 1 year ago
@sk88888888er88: You probably gave the "MoveAround" script a different name.. if not, make sure that your typing it correctly anyway..
takashy87 1 year ago
This has been flagged as spam show
@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
jedybg 1 year ago
@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
jedybg 1 year ago
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?
GenerationBryan 1 year ago
cool !!
leozin2007 1 year ago
Im getting this error:
Assets/HealthControl.js(36,29): BCE0022: Cannot convert 'int' to 'boolean'.
Anny1 knows how to fix this?
m0nkeynuts2 1 year ago
Comment removed
Mattchu1995 1 year ago
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 1 year ago
@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
skatedude90 1 year ago
Comment removed
Mattchu1995 1 year ago
I also have problem with getting hit two times, anyone know what to do?
BlueAngel319 1 year ago
Assets/Pro Standard Assets/Image Based/HealthControl.js(48,25): BCE0005: Unknown identifier: 'MoveAround . idk wut i did wrong
matto8899 1 year ago
@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"
halo1892 1 year ago
@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 :(
ohmyfsm 1 year ago
it says that "MoveAround" is not a known identifier D:
Fug118TheGreat 1 year ago
i cant drag bodyparts on the health script
can somebody help plz :(
flix450 1 year ago
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?
JJV992 1 year ago
One more thing. My fireballs goes through the terrain and turrets
JJV992 1 year ago
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.....
everbodylikesgames 1 year ago
hhhhhiiiiiiiiiiiiiii:) :)
guineapiglover2000 1 year ago
Ermm.anyone know a software tht can make games for x box or ?
123baddragon 1 year ago
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
flamingmonkeygroup 1 year ago
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
drewm1273 1 year ago
This has been flagged as spam show
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.
eragonrex1 1 year ago
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.
eragonrex1 1 year ago
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.
2112inuyasha 1 year ago
Please make your scripts of this game downloadable???
jarcosan 1 year ago
Can you make your worm and turret scripts downloadable????
jarcosan 1 year ago
hello how do you make a gameover script
Zz29999 1 year ago
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 1 year ago
@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);
ornba 1 year ago
I can't wait to learn about Publishing the game!
tristanoodle 1 year ago
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?
dranoel1963 1 year ago
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)
rupluttaja 1 year ago
hey jow can i make my worm jump ?
TheKrash100 1 year ago
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?
dogsexplode 2 years ago
Help me please.I get hit but i don't lose bodyPart1
and bodyPart2.
AlexaSvilkic 2 years ago
Assets/Scripts/MoveAround.js(60,31): BCE0019: 'HITS' is not a member of 'HealthControl'.
Can someone please show me or tell me the code for this problem please?
ricky5120 2 years ago
need the script!!!!! jezus plz post it or send it to me plz
ik heb het echt nodig aub!
i really need it!
redskirky 2 years ago
dear TT,
can you make a video on how to inport models from blender to unity
AKmotionpictures 2 years ago
Doogledude123 2 years ago
Thanks for helping out bro!
-TT
TornadoTwins 2 years ago
@Doogledude123 i also need the shooting part like in vid #5
redskirky 2 years ago
@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
redskirky 2 years ago
can you post the move around script any1 on vid part 5 plz post it as a comment plz
redskirky 2 years ago
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
Doogledude123 2 years ago
How do you record this?!?!
Cazza262 2 years ago
Camtasia. :) i asked the same question a long time ago . and it works just fine.
cujorius 2 years ago
Thanks :)
Cazza262 2 years ago
Camtasia for Mac, yeah. Super nice software. I also use Snapz Pro sometimes.
-TT
TornadoTwins 2 years ago
cant wait next part :D
reppis100 2 years ago
It's up!
-TT
TornadoTwins 2 years ago
@TornadoTwins hey man i just wanna know the script with shooting i need
redskirky 2 years ago
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 2 years ago
@Musicsmycalling Hey, I could help you with that and it is easy to do.
2112inuyasha 1 year ago
when r your fps tuts coming out????
conradlee65 2 years ago
please could u send me the heart pictures great tuts!!!
SuperRockSongs 2 years ago
can you show us how to put fire and objects in our game that when we collect them they give us more health
OttoMaticFan 2 years ago
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.
rupluttaja 2 years ago