Skip to main content
joelw90893486
Participant
August 3, 2018
Answered

How do I keep score for a two-player fill in the blank quiz in Action Script 3?

  • August 3, 2018
  • 2 replies
  • 278 views

Hello everyone, I have a created a game in Flash CS6 using ActionScript3. The game is basically a two-player fill in the blank quiz game.

I based the game off of the TV Show, Don't Forget The Lyrics. The issue I need help solving is writing code so the game and the player knows who turn it is and then follow show the correspondent score when the question is answered correctly.

The game is about 50 questions long and I would like to give points on each word that the player gets right for the words missing in the song they select.

Player 1 and Player 2 should have the opportunity to select any song and answer it. Once answer, their respected scores should show that change.

So, in theory, the game should play like this, if the song selected is Mary Had A Little Lamb, both players should have the opportunity to fill in the blanks of the missing lyrics.

Say it is Player 1 turn, then they choose this song. If the missing lyrics are "Fleece was white as snow" and answered correctly then Player 1 gets the points.

After that, it should be Player 2 turn and they can select Old McDonald Had A Farm. If the game is restarted each player should be able to pick either song and have their score recorded.

I don't have any code to show since I don't know where to start but I will attach a link to where one can look at my fla file for reference.

Thanks in advance if this request can be answered!

https://www.dropbox.com/s/tfct1j69ypzkuvi/AUAY%20DFTL%20New%20Template.fla?dl=0

This topic has been closed for replies.
Correct answer ClayUUID

In light of the intended scope of your project, adding 1 to a variable frankly sounds like the least of the challenges you're facing.

2 replies

ClayUUIDCorrect answer
Legend
August 3, 2018

In light of the intended scope of your project, adding 1 to a variable frankly sounds like the least of the challenges you're facing.

kglad
Community Expert
Community Expert
August 3, 2018

how do you determine who goes first?