- Home /
2D Game Checkpoint System
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
Answer by seedoubleyou · Mar 14, 2012 at 04:41 AM
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.
Or, for that matter, you could just store a reference to the most recently activated trigger... there are a lot of ways to solve this problem.
Your answer
Follow this Question
Related Questions
Checkpoint Scripting Help 1 Answer
How do I create a good Checkpoint system? 0 Answers
Checkpoint GUI enabled then disabled trouble 3 Answers
Reset a scene but save checkpoints. 2 Answers
how do I make smart checkpoints? 1 Answer