A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: how to make a score counter?

  1. #1
    Junior Member
    Join Date
    Jun 2004

    how to make a score counter?

    Quite simple really, im a newy to flash and i need to know how to make a simple score counter.i found a tutorial on flashkit but i dont think it was explained very well-or maybe it was just me!
    thanks for ne help!

  2. #2
    Senior Member X-Tender's Avatar
    Join Date
    Jun 2003
    you need help by incrementing an variable? o_O --


    scorepoints = 0;

    addScore = function(score){
    scorepoints += score;



  3. #3
    Phantom Flasher... Markp.com's Avatar
    Join Date
    May 2000
    Theres a few things you should know first.

    What does a player have to do to get a score?

    Thats the game creation, simple enough, thats your own idea. For this example, we'll use a button.

    So every time the player clicks the button, we add a point to the score.


    On frame one enter the code: score=0;

    On frame two enter the code: stop();

    Create a button on this frame and on it add the code: on (release) {score++;}

    and thats it!

    Simple eh?
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center