I’m a total noob at programming at the moment, and I ran into a problem with a game I’m trying to finish. Its where the user answers a few questions and at the end it will decide what your color is. Everything has been good so far, except for the end where I made the script to check what color the user would turn out to be.
Code:
function setColor(): void{
unequalizeColors();
if((colors[0]) > (colors[1][2][3][4][5][6][7][8])){
gotoAndPlay(“redscene”);
}
else if((colors[1]) > (colors[0][2][3][4][5][6][7][8])){
gotoAndPlay(“bluescene”);
}
else if((colors[2]) > (colors[0][1][3][4][5][6][7][8])){
gotoAndPlay(“greenscene”);
}
}
setColor();
Error #1069 comes up saying “Property 2 not found on Number and there is no default value.” Anyone know how to fix it? Thanks for any help!