- Home /
Question by
seatthief · Feb 18, 2011 at 07:41 AM ·
javascriptlevelloadlevel
Next lvl code help
i have this script
function OnControllerColliderHit (hit : ControllerColliderHit){
if(hit.gameObject.tag == "Finish") {
Application.LoadLevel(2);
}
}
and i have a new scene called 2 but it dosn't take me to lvl 2 it just acts like a wall help plz
Thx seatthief
Comment
A heel on "IsTrigger" is needed for the Collider of Gameobject "Finish" , maybe it is missing.
Answer by Unamine · Feb 18, 2011 at 01:37 PM
Check the inspector, if the object with the tag "finish" has a check box IsTrigger and mark it, I think that solves your problem
Your answer
Follow this Question
Related Questions
Level advancment Scirpt 1 Answer
how to link objects in the inspector on load level 1 Answer
timed out load level 2 Answers
Level freezes on loading dynamically 0 Answers
help please: Level Changing Scipt 1 Answer