How would I go about achieving this? I'm looking for a way to prevent sequence breaking in my game and am under the impression this would stop that from happening.
asked May 04 '11 at 08:30 AM
If you have a rigidbody on your gameobject you can use the velocity value to determine if your player has died.
if you are using a Character controller you might be able to do the same, im not sure though :)
I would build a simple collider below your platform, and when the player hit that collider, it means death. then you can easily define several similar colliders around your levels at different height.
This would prevent always checking in an update, that's not very efficient.
answered May 04 '11 at 08:46 AM
well you could make it so that if your player falls to a certain point, then you basically respawn it to another.... Here is a script that i use:
where it says "
attach this script to your player game object...
hope this helps
(script from tornado twins)
answered May 04 '11 at 08:40 AM