now it still does not trigger when i walk in the game obkject trigger assinged box can you help me again?
function OnTriggerEnter (other : Collider) {
Application.LoadLevel (1);
}
now it still does not trigger when i walk in the game obkject trigger assinged box can you help me again?
function OnTriggerEnter (other : Collider) {
Application.LoadLevel (1);
}
there are conditions to be met for the trigger to work.
check these all and then it should work.
Hey if you want it to work this is what you need to do:
function OnTriggerEnter (other : Collider) {
if(other.gameObject.tag == "Player"){
Application.LoadLevel ("Put your level name in here"); // for example if it is "1" put the following: "grassLand" that is meant to be the scene name.
}
}
this script needs to be attached to the object not the main player :) and make sure the object is an trigger and that should do the trick :)
hope this helps :)