Right, when my 1st person character has defeated all of the aliens, <-- done fine
its task is to get to a box, which then should then teleport it to the next level! <--- i need help with the collision!
Here is what ive got so far:
` function OnControllerColliderHit (hit : ControllerColliderHit)
{
if(hit.gameObject == "crate3lvl") {
Application.loadlevel("Level 2.unity")
}
`
SO i kind of need some help! Please!
function OnControllerColliderHit (hit : ControllerColliderHit)
{
if(hit.gameObject.name == "crate3lvl")
Application.loadlevel(1); // or "Level2" if you name it that way, use 1 if it's the second on the list.
}
Don't forget that you must add your level though to the list of levels
the crate doesnt need a rigidbody and a mesh collider for this particular bit of code. You need a box collider (because its a crate why use a mesh collider which takes more processing power) with "is trigger" checked.
please please PLEASE complete some basic tutorials and learn from them, also keep http://unity3d.com/support/documentation/Manual/index.html the unity manual handy so that you can find out simple things about the unity engine instead of asking stupid questions (I'm sure they are not stupid to you but seen as though you can find the answer with a bit of searching, yes they are a stupid) also when your having coding problems http://unity3d.com/support/documentation/ScriptReference/index.html keep the script reference around, it has every syntax and and how to use them.
also your "game" is spelt wrong, "private front tire" would be a good name for some form of driving army game but as a MASSIVE rip off of the official Unity FPS tutorial. And asking people to pay to download your (shockingly appauling) game is an insult, anyone who pays to download it is dumber than you are and all your doing is taking advantage of idiots. You know nothing about creating a game, I understand that everyone has to start somewhere, but you need to start from the begininng instead of sticking some crap on the internet and asking people to pay for it.
Also your website is horrible to navigate, http://www.webpagesthatsuck.com/ maybe you can see why after some RESEARCH. It's fools like you reproducing and producing kids that are fools like you, that's the reason why the human race is in decline. I appreciate you are making an effort to do something you have interest in and please I am not trying to deter you from being creative but you need to learn to create these things properly especially if you plan to ask money for it. Right now it looks like everything you have done is a joke, not a funny one either. I'm sure you can do better but you need to do three things
1) LEARN
2) RESEARCH
3) IMPROVE
never give up on your dreams but dont pretend that your puddle of hogwash deserves to be credited. Especially since you want people to pay you for it!