- Home /
level loader help m plzzzzz
hello fello game makers i was wondering if any can give me a script that make a particle that when the player goes in it its goes to the loader level if you can that will be great
thank you
Comment
Answer by Jason_DB · May 19, 2010 at 10:55 AM
You could make a box collider into a trigger, then put something like this on it:
//The player would have to be tagged "player"
function OnTriggerEnter (other : Collider) {
if(other.tag == "player"){
Application.LoadLevel ("LoaderLevel");
}
}
This doesn't include a particle effect but you can just drag it onto the box instead of including it in the script.
Be sure to use '==' since you need two when doing a comparison.
Your answer
Follow this Question
Related Questions
WaitForSeconds 1 Answer
Simple save/load scripting for multi level iOS game. 1 Answer
How can I save and load a player's position? 5 Answers