Her

Home Flash & Swish Swish Tutorials Simple Scoring System

Simple Scoring System

Author: Craig Lowe Author's URL: www.swish-designs.co.uk More by this author

Example:

Click on the numbered buttons above to add the score. use reset to clear the score.

Ok lets start by opening swishmax, this system is really simple for adding a score or points system to a games.

Firstly lets type "Score:" make sure this is static text.

Now lets create a dynamic text box and name it points, just type a zero, so that you can line it up at the side of the score text.

Secondly add a button with the number you wish to add to the score on it. example 10

Now add the following code to the button.

on (release) {
points=Points+++10;
}

Change the 10 to whatever points you wish to add 20, 30, and so on.

To add a reset button simply add the following code to a reset button.

on (release) {
Points="0";
}

This simply just tells the dynamic text box called points to display "0" allowing the scoring to start over again.