So here is my code:
Code:
on (release) {
if (laserdate == 0) {
laserdate += 1;
gotoAndPlay("laserchat1")or ("laserchat2") or ("laserchat3") or ("laserchat4") or ("laserchat5");
} else if (laserdate == 1) {
laserdate += 1;
gotoAndPlay("laserchat1")or ("laserchat2") or ("laserchat3") or ("laserchat4") or ("laserchat5");
} else if (laserdate == 2) {
gotoAndPlay("laserelse");
} else if (laserdate == 3) {
gotoAndPlay("laserelse");
} else if (laserdate == 4) {
laserdate += 1;
gotoAndPlay("laserchat1")or ("laserchat2") or ("laserchat3") or ("laserchat4") or ("laserchat5");
} else if (laserdate == 5) {
gotoAndPlay("laserelse");
}
}
Can the 'or' in my code work? What I'm trying to do is have the player go to either of the chat frames. When I tested my code, it didn't go to the chat frames. How can I fix this?