# Switch Players

**URL:** <https://forum.kirupa.com/t/switch-players/323093>\
**Category:** programming\
**Created:** [June 16, 2011, 4:06pm UTC](https://forum.kirupa.com/t/switch-players/323093 "2011-06-16T16:06:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeachersFTW](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@TeachersFTW](https://forum.kirupa.com/u/TeachersFTW)\
**Post date:** [June 16, 2011, 4:06pm UTC](https://forum.kirupa.com/t/switch-players/323093/1 "2011-06-16T16:06:48Z")

</div>

Hello! I teach a few classes at local schools and made a little Flash trivia game that I use as a summary for the main sections of the lecture. It has multiple choice and true/false questions, keeps score, and gives a total score at the end. It seemed to go over well with all the students working together to get the right answers, but they have gotten a little bored with it since there’s no real sense of competition. I want to change it so that I can split the class into 2 teams and have the game turn-based. For example, Team1 gets a question right, they get to go again and their score keeps adding up. If they miss a question, then Team2 gets a chance to answer and so forth.

I figured out how to keep 2 different scores, but have no idea of even how to start with making Flash switch between the 2 teams (and know which team to give the score to based on who’s turn it is). Any ideas? I’m willing to start over if I have to.

More info:

- It’s not online; all the kids are in the same room with the game projected on a screen.
- Don’t need chat or anything like that.
- Don’t need login; I just split the class in half and say one is Team1 and other is Team2.
- Don’t need extensive multiplayer code…just 2 teams in same room; somebody calls out an answer and I click on the button to see if it’s correct.

If you need more info, just let me know.
