how to respawn after death

im making a 2d platformer and i want my character to die when he falls and when he hits off an enemy help plese also is there anywhere where i can learn javascript as in tut video like everything ill ever need t know

If you want to start learning JavaScript (UnityScript), this site will be useful for you: Unity3D Student

About your question, the easier way is to have a SpawnPoint (a simple Empty GameObject will make the trick). Then after your player dies, just set the players position to the GameObject´s position.

Of course you may want other stuff to happen like sounds, particles, counters, but the basic idea is that.

yup download the 2d platformer tutorial. It even shows you how to respawn when you die. It’s a great starting point. It’s written in javascript and you can find the tutorial on the Unity 3d website.