How Do I Change Scene Once I've Touched a Cylinder

Okay here’s the scenario… i’m playing my game and i get the end of the level, i stand on a cube and This takes me to the next level.

How do i do this?

I’ve tried many scripts and have all failed.

please walk me through it step by step in detail,

Thank you.

  1. Whatever you’re using to “stand” on the cube must have a Collider component.

  2. The cube must have a Collider component. The collider should have the “Is Trigger” property checked in the editor.

  3. Create a script, attach it to the cube…

    void OnTriggerEnter(Collider other)
    {
    Application.LoadLevel(“Scene2”);
    }

Or if you’re using Javascript…

function OnTriggerEnter(other : Collider)
{
  Application.LoadLevel("Scene2");
}

Replace Scene2 with the name of your scene.

In Build Settings, make sure both scenes are listed, or Application.LoadLevel will complain.

It Doesnt Work

I’ve followed your instructions but it comes up with an error message saying…

Assets/scripts.js(1,10):UCE0001’;’ Expected. insert a semicolon at the end.??