|
|
|
|
Title: #12 Making a character respawn in Unity 3d game engine
Added: Dec 28, 2009
Author: TornadoTwins
Duration: 8:18
Description:
Adding lives/respawn and all that good stuff!Download the project files here: http://gameprefabs.com/pages/tutorials/wormgame
Related Videos:
Videos related to '#12 Making a character respawn in Unity 3d game engine'
Channel: Howto
Tags: unity 3d game engine design tutorial training javascript turret shoot respawn code
unity 3d game engine design tutorial training javascript turret shoot respawn code
Youtube Comments: 537
MrPetecor Says:
Feb 6, 2012 - Works but can't move, i seem to have the same problem as GameReviewer, any help anyone??
MrPetecor Says:
Feb 6, 2012 - FOUND THE PROBLEM--- Credits to one of the earlier commenters "For everyone who can't move forward or backward after respawning, check to make sure you have spelled everything correctly in the LateUpdate function. I forgot the space in between "Main Camera" so it kept giving me a Null Exception or something and I could not move. After fixing that everything worked perfectly. Thanks for the sweet tutorials TornadoTwins!"
mariovsluigi4094 Says:
Feb 9, 2012 - if he keeps on falling just add like a part where theres somthing invisable killing him
SuperLEGOMADNESS Says:
Feb 10, 2012 - i made the same mistake make sure at the end of the script you set dead to false again
Private19872 Says:
Feb 11, 2012 - Can you help me make a simple script that when you stand on a button it turns a light's intensity from 0 to 2?
MindOfCreativity Says:
Feb 14, 2012 - It sounds like you have a bit of a Dutch-ish accent.
Sumal1993 Says:
Mar 2, 2012 - Very simple script is creating a "Death zone" on y= -7function Start () {}function Update () { if (transform.position.y<-7) { transform.position.x=-0.837932; transform.position.y=1.304186; transform.position.z=1.430493; transform.rotation.y=0; }}
pres16000 Says:
Mar 7, 2012 - THANKS HEAPS GUYS! REALLY HELPFUL!!!
RealitieBeats Says:
Mar 13, 2012 - VERY EASY respawn isfunction Update (){ //This is to see if the character fell off the floor or platform. if(transform.position.y < 0) {//if object fell off then {Do transform} transform.position.y =0; transform.position.x = 0; transform.position.z = 30; transform.rotation = Quaternion.identity;}
RealitieBeats Says:
Mar 13, 2012 - at top of commets section i posted an easy respawn..^^
crazycrookes Says:
Mar 22, 2012 - hi guys i have a problem, when i respawn i can rotate left and right but cant move back or forward? any ideas as to why that might be?
navalatanjjnn Says:
Apr 1, 2012 - i have the same problem too.. found out that a part of my model sinks to the ground... i made another sphere and it served as my head and let my model head be parented by the sphere. i turned the mesh renderer for the sphere which leaves me with my head.. then, i did all the scripts on that sphere. this really didnt solve the problem but it worked just fine.
HellHappens Says:
Apr 2, 2012 - I don't have the fallout tag, SOS!
oliver57699 Says:
Apr 9, 2012 - Mate Please can you put the scripts into a mediafire folder
MrSSHater Says:
Apr 10, 2012 - People I have the solution. You have to type fallout in the Tag Manager next to the Element you want. Thumbs up so people know. I feel like an idiot not seeing this a week ago. If you still do get it I might put a video response to this video.
ProfessorRyanH Says:
Apr 11, 2012 - guys i know why you are spawning and not moving. what i did was delete the bit of where the camara respawns back to start --- gameObject.Find("Main Camara").transform.position = Vector3(7,4,2); because why would it need to restart position if it follows anyway? and when i did that BOOM it was like magic!
halohacker1146 Says:
Apr 16, 2012 - Hey guys, If you are interested in learning Unity3D, this isn't really the place to go anymore. If you check out my channel, I am making tutorials actively. This not only means that I am using an updated version of unity, but I answer every single comment I get. Don't take my word for it, go to one of my tutorials, and look at the comments. These are good, but mine are more in depth and up to date!
paul2naruto Says:
Apr 25, 2012 - Does anyone have this problem:After running the game my my camera is not following the worm anymore..it just sticks to it's place and I can look around with it, everything else works the camera doesen't follow the worm :(Anyone have any idea why?
paul2naruto Says:
Apr 25, 2012 - Okay...so I rewrote the script now my camera is following me, but guess what , suddenly i will not respawn anymore , i just get to walk around on the fallout cube ( yes the tag is all good) any ideas?
willkoman1023 Says:
May 4, 2012 - i found the solution! dont forget to add dead = false at the end of the code ...everything should work fine! :D
Maxxe360 Says:
May 14, 2012 - how can i add Tags? because i only have 2 options when i scroll down the lil trilange(size+element)
dawonderkid786 Says:
May 16, 2012 - Edit the element and write the name u want to use as a tag .. then from inspector tab select the tag name u wrote in the element for the gameobject
Maxxe360 Says:
May 17, 2012 - Thanxx ^_^)
MultiXterminator Says:
May 27, 2012 - To all who is respawning but not moving: Check that your Camera is named "Main Camera" both in the scene and in the script! If not, then the script will not be fulfilled, thus not allowing "dead = false;", therefore, you're constantly respawning. CHECK THE CAMERA!












sC11190 Says:
Jan 25, 2012 - i just land on the platform and i dont respawn!