Penelope tutorial with errors in Unity iPhone 1.7

Hello.

I am trying the Penelope Tutorial, and I am getting a lot of errors, probably related to version 1.7

The complete tutorial causes a huge amount of erros when compiled.

Is there a tutorial adequate for version 1.7?

Or can you point us in the right direction to solve the problems?

Here below I paste one of the errors ocurring in the Joystick.js, right in the first compiling attempt.

Assets/Scripts/Joystick.js(15,29): BCE0018: The name 'Touch' does not denote a valid type. (Filename: Assets/Scripts/Joystick.js Line: 15)

Here below is the code, similar to that in the tutorial:

START OF CODE:

function Update(){

var count = Input.touchCount;

for ( var i: int = 0; i < count; i++){

    var touch : Touch = Input.GetTouch(i);

    if (gui.HitTest(touch.position)){

        gui.pixelInset.x = touch.position.x;

        gui.pixelInset.y = touch.position.y;

    }
}

}

END OF CODE

variable gui declaration was done before, and it is ok.

Thanks for your help.

Hi Eduardo,

I just started this tutorial myself and noticed the error. I believe they changed the API slightly since this tutorial was written. The class Touch and Input are now called iPhoneTouch and iPhoneInput. If you make those changes it should compile and run.

That's about all I had time to do today with this tutorial... I'll see how much deeper I get and clean as I go...

V.