if (teamA>teamB) {
gotoAndPlay("teamA_wins", 1);
//playerOne wins
} else {
gotoAndPlay("teamB_wins", 1);
//playerTwo wins
}
this is the code i am using if i wanted to add in the effect of a tie, what would the code be for that. i am thinking it might be
if (teamA>teamB) {
gotoAndPlay("teamA_wins", 1);
//playerOne wins
[color=red]if(teamA=teamB){[/color]
[color=yellow][color=red]gotoAndPlay("tie", 1[/color]);[/color]
//teams tie
} else {
gotoAndPlay("teamB_wins", 1);
//playerTwo wins
}
but i am not for sure that this is the answer, so if someone could look at it i would be very thank you