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?!!??!?!?!?!? ![]()
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?!!??!?!?!?!? ![]()
Yes,
I second the motion.
Rev.
![]()
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:
Create an object with a Collider attached (can be Box, Sphere, whatever).
Make sure you check the isTrigger checkbox on the Collider component.
Attach this script to the GameObject:
var levelToLoad : int = 1;
function OnTriggerEnter(other : Collider) {
if (other.tag == "Player") {
Application.LoadLevel(levelToLoad);
}
}
THANX!!!
![]()
May every breath be filled with Love.