Level Done Move On

there is a tag “Finish”, what does it do. is there a script to register when the player has won to send him to the next level? or do i do that in the build settings?

how? how?! HOW?!!??!?!?!?!? :smile:

Yes,

I second the motion.

Rev.

:expressionless:

I’d never actually noticed that tag. As far as I know, there’s nothing special about it. Here’s what I’d do to make a finish zone:

  1. Create an object with a Collider attached (can be Box, Sphere, whatever).

  2. Make sure you check the isTrigger checkbox on the Collider component.

  3. Attach this script to the GameObject:

var levelToLoad : int = 1;

function OnTriggerEnter(other : Collider) {
	if (other.tag == "Player") {
		Application.LoadLevel(levelToLoad);
	}
}
  1. Using the inspector, set “levelToLoad” equal to the number of the next level (determined by the order in the build dialog).
  2. Make sure that the player has the tag “Player”.

THANX!!!

:smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile: :smile:

May every breath be filled with Love.