jeudi 17 novembre 2016

Error code #1010 in Actionscript 3

Please help, I'm new to ActionScript 3 and it says error code #1010

function checkCollisions():void
{
    for (var i:uint = 0; i<foods.length; i++)
    {
        if (chomper.hitZone.hitTestObject(foods[i]))
        {
            if (foods[i].currentFrameLabel == 'veg')
            {
                gameOver();
                return;
            }
            removeChild(foods[i]);
            foods.splice(i,1);
        }
    }
}

Aucun commentaire:

Enregistrer un commentaire