sry for mistaks in the question im german . i search a way to come from a one level to the other and have scriptet these underline is the line with application level load thx for help.if anyone anser in german realy realy thanks
#pragma strict
function Start () {
}
function Update () {
}
function OnCollisionEnter (col : Collision) {
if (col.gameObject.tag == "player" && Input.GetButtonDown("E") ) {
Application.LoadLevel(3)
}
}
Your script isn’t wrong, but it will only load level 3 if the player presses “E” at the exact same time as the collision happens. Is that really what you want?
hi,
könntest du auf deutsch erklären, was du versuchst zu erreichen und worin genau dein problem liegt? wie gregzo schon geschrieben hat müsstest du momentan genau während du mit dem objekt kollidierst die taste “e” drücken um level 3 zu laden.
lg,
stefan
ps. i know the official language here is english, but i think it’s already hard to understand what exactly the problem is. therefore i will try to help in german and then post the relevant parts in english!