I’m fairly new to Unity, and I am attempting to make a fairly simple 2D Platformer game. I want to create a checkpoint system (if player falls of platform, respawn at last checkpoint touched), and all I know how to do so far is to create a gameobject and set it as a trigger. I’ve tried looking at the 3D-Platform Tutorial provided by Unity, but since I use a different character controller (link below), the script provided in the tutorial doesn’t really work. Can someone clarify what to do, or should I switch to the controller provided in the script and work with it?
http://dl.dropbox.com/u/19968260/PlatformerController.js
You could have a series of triggers which are activated when the player passes them. Then you store the name (or number, whatever) of that trigger location and using that data, respawn the player there.