- Home /
need help with trigger
i want it so when ever a player go passed that trigger it changes level how do i do that
Comment
Answer by Jesse Anders · Mar 01, 2011 at 08:00 AM
In the docs, look up OnTriggerEnter() and LoadLevel(). (Just type the function names into the search box.)
If there are other objects that can interact with the trigger, you might also need to check to see if the object in question is the player object (you can do this, for example, by checking the object's tag or name).
I think you can probably accomplish the check with layer based collisions, but I don't know if thats easier or harder as I haven't personally played with it yet