Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Scoring and Data Collection for Simple Flash Game using Actionscript 2

New Here ,
Nov 29, 2011 Nov 29, 2011

Hello all -

First let me say that I'm not very good or knowledgeable when it comes to actionscript...

I could really use some assistance with an issue I've run into.

My company has developed a very simple "Whack-a-Mole" type of game for a social media campaign.

See here: http://www.hereforyoueverystep.com/social/game.html

Our client is now requesting that we add a scoring system so that we can offer a prize to the 3 top scores.

What I need is to be able to link the number of "whacks" to a score and enable the user to input their email address at the end of the game connected to the score they achieve.

It was developed in Actionscript 2, because of a tutorial that was followed.

If anyone can give me some advice or offer to edit my files directly, i would be very grateful.

Thank you!

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 29, 2011 Nov 29, 2011

create a variable (eg, score), initialize it (to zero) and increment it when a mole is whacked.

then you'll need to create a database on the server that stores top scores.  you should use the flash LoadVars class to update and retrieve high scores and you'll need to use server-side scripting to write to your database.

Translate
Community Expert ,
Nov 29, 2011 Nov 29, 2011

create a variable (eg, score), initialize it (to zero) and increment it when a mole is whacked.

then you'll need to create a database on the server that stores top scores.  you should use the flash LoadVars class to update and retrieve high scores and you'll need to use server-side scripting to write to your database.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2011 Nov 29, 2011

Do you know the actionscript that I would use and where to put it in order to increment the variable?

Would you be willing to take a look at the file for me?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2011 Nov 29, 2011

i don't download and correct files unless i'm hired.

you are probably using a hitTest() to check when a mole is whacked.  you can use movie explorer to search for hitTest( in your source files to find when that's positive and at that point, increment your variable.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2011 Nov 29, 2011

Can you send me a quote on how much this would cost my company to hire you, and how soon we could have it finished?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2011 Nov 29, 2011
LATEST

send me an email via my website:  http://www.kglad.com, click contact.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines