x


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

more ▼

asked May 19 '10 at 10:23 AM

josif gravatar image

josif
212 19 23 35

but its say something about the script inset finish t

May 26 '10 at 02:52 PM josif
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered May 19 '10 at 10:55 AM

Jason_DB gravatar image

Jason_DB
1.9k 4 14 36

Be sure to use '==' since you need two when doing a comparison.

May 19 '10 at 12:47 PM straydogstrut

haha whoops I always make that mistake!

May 22 '10 at 01:25 PM Jason_DB

No worries, i've done worse myself;-)

May 22 '10 at 01:30 PM straydogstrut
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x436
x66

asked: May 19 '10 at 10:23 AM

Seen: 1059 times

Last Updated: Nov 28 '10 at 03:58 AM